diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-21 16:23:34 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:37:01 +1000 |
commit | 4367b51e565e9233a69e86a47ab48c0027091426 (patch) | |
tree | 4391091eb314c0b5b709c003fb75bd64ec12c1db /libs/pbd/pbd | |
parent | f597bb5ed73a65dfbafd05d46c34ce8de379ec51 (diff) |
Remove PBD::to_string() function from pbd/convert.h
All uses of this function have now been replaced by PBD::to_string() from
pbd/string_convert.h
Remove this function so that it isn't mistakenly used to perform numeric to
string conversion when the result is being used for serialization as that only
works if the global C++ locale is set with LC_NUMERIC=C, which is the case
currently but may not be in the future.
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r-- | libs/pbd/pbd/convert.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libs/pbd/pbd/convert.h b/libs/pbd/pbd/convert.h index af40446a81..5adabe684d 100644 --- a/libs/pbd/pbd/convert.h +++ b/libs/pbd/pbd/convert.h @@ -23,8 +23,7 @@ #include <stdint.h> #include <string> #include <vector> -#include <sstream> -#include <iostream> + #include <glibmm/ustring.h> #include "pbd/libpbd_visibility.h" @@ -49,14 +48,6 @@ LIBPBD_API std::string length2string (const int64_t frames, const double sample_ LIBPBD_API std::vector<std::string> internationalize (const char *, const char **); LIBPBD_API bool strings_equal_ignore_case (const std::string& a, const std::string& b); -template <class T> std::string /*LIBPBD_API*/ -to_string (T t, std::ios_base & (*f)(std::ios_base&)) -{ - std::ostringstream oss; - oss << f << t; - return oss.str(); -} - LIBPBD_API const char* sgettext (const char *, const char *); } //namespace PBD |