]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
Add a bunch of c_str() for string stream uses; remove lyxfunc symbol-insert.
[lyx.git] / src / support / lstrings.h
index cc3e88acda57de2c16d7566bec356876e1ece1ad..9541cd0cbc71d553759f95c26d620d970d4f8a67 100644 (file)
@@ -70,7 +70,7 @@ template<typename T>
 inline
 string const tostr(T const & t) 
 {
-       std::ostringstream ostr;
+       ostringstream ostr;
        ostr << t;
        return ostr.str().c_str();
        // We need to use the .c_str since we sometimes are using
@@ -86,7 +86,15 @@ string const tostr(bool const & b)
 {
        return (b ? "true" : "false");
 }
-       
+
+///
+template<>
+inline
+string const tostr(string const & s)
+{
+       return s;
+}
+
 /// Does the string start with this prefix?
 bool prefixIs(string const &, char const *);