]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCommand.C
make it compile again (hopefully)
[lyx.git] / src / mathed / InsetMathCommand.C
index a001ff413292120ebc161339650ffda37c85d19f..070517924deb1d624162ec7c1277bb1fb7710745 100644 (file)
@@ -22,7 +22,6 @@ using lyx::docstring;
 
 using std::string;
 using std::auto_ptr;
-using std::ostringstream;
 
 
 CommandInset::CommandInset(string const & name)
@@ -80,10 +79,10 @@ docstring const CommandInset::screenLabel() const
 
 string const CommandInset::createDialogStr(string const & name) const
 {
-       ostringstream os;
-       os << name << " LatexCommand ";
+       lyx::odocstringstream os;
+       os << lyx::from_ascii(name) << " LatexCommand ";
        WriteStream ws(os);
        write(ws);
        ws << "\n\\end_inset\n\n";
-       return os.str();
+       return lyx::to_utf8(os.str());
 }