]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.C
small changes read ChangeLog
[lyx.git] / src / support / filetools.C
index 33c6dd4d82c28ed541c9a6ac3a186862e0c840a9..52e642203bf262f1fe9295f5ee27aabd6d891ece 100644 (file)
@@ -735,10 +735,10 @@ string GetFileContents(string const & fname) {
                        ofs << ifs.rdbuf();
                        ifs.close();
 #ifdef HAVE_SSTREAM
-                       return ofs.str();
+                       return ofs.str().c_str();
 #else
                        ofs << '\0';
-                       char const * tmp = ofs.str();
+                       char const * tmp = ofs.str();
                        string ret(tmp);
                        delete[] tmp;
                        return ret;