]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parser.C
use the new sstream return non-pods as const, use string instead of char * in a lot...
[lyx.git] / src / mathed / math_parser.C
index 2c8c7053cfaec4d5abacf8e7662dac005ab000bb..9d08906c89ec1a01df44f2d66ad7604acea4c1ae 100644 (file)
@@ -92,7 +92,7 @@ static int yylineno;
 static istream * yyis;
 static bool yy_mtextmode= false;
            
-inline
+static inline
 char * strnew(char const * s)
 {
        char * s1 = new char[strlen(s) + 1]; // this leaks when not delete[]'ed
@@ -102,7 +102,7 @@ char * strnew(char const * s)
 
 
 static
-void mathPrintError(char const * msg) 
+void mathPrintError(string const & msg) 
 {
        lyxerr << "Line ~" << yylineno << ": Math parse error: "
               << msg << endl;