diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-08 09:03:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-06-08 09:03:26 +0200 |
commit | ce0aa96838ff7c517eae7b4070afdb61932be3aa (patch) | |
tree | 3e6ed31b0830f6d4826210c7f2dd1937eca196c7 /gtk2_ardour/sfdb_ui.cc | |
parent | fea8e860c625fc669bbdc469e44e9ba5026b9bf2 (diff) |
NOOP - use PBD's std::string to number functions
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 8916a53971..85b4f7d7ef 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -949,7 +949,7 @@ SoundFileBrowser::freesound_search() XMLNode *res = root->child("num_pages"); if (res) { string result = res->child("text")->content(); - freesound_n_pages = atoi(result.c_str()); + freesound_n_pages = atoi(result); } int more_pages = freesound_n_pages - freesound_page; @@ -1010,7 +1010,7 @@ SoundFileBrowser::freesound_search() std::string r; // cerr << "id=" << id << ",uri=" << uri << ",ofn=" << ofn << ",dur=" << dur << endl; - double duration_seconds = atof(dur.c_str()); + double duration_seconds = atof(dur); double h, m, s; char duration_hhmmss[16]; if (duration_seconds >= 99 * 60 * 60) { @@ -1023,7 +1023,7 @@ SoundFileBrowser::freesound_search() ); } - double size_bytes = atof(siz.c_str()); + double size_bytes = atof(siz); char bsize[32]; if (size_bytes < 1000) { sprintf(bsize, "%.0f %s", size_bytes, _("B")); |