]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
another safety belt
[lyx.git] / src / support / lstrings.h
index 4fbde835dc6b4971930bcb78319c39acf291bfef..1330616ab92da2770a90549fe9a29a45bb086609 100644 (file)
@@ -97,7 +97,7 @@ string const tostr(T const & t)
 {
        ostringstream ostr;
        ostr << t;
-       return ostr.str().c_str();
+       return STRCONV(ostr.str());
        // We need to use the .c_str since we sometimes are using
        // our own string class and that is not compatible with
        // basic_string<char>. (of course we don't want this later)