]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathExtern.cpp
Fix a bunch of small performance issues spotted by cppcheck
[lyx.git] / src / mathed / MathExtern.cpp
index 236b24ba85f5beb35e565ccfe34ff4934e7e337a..a943dac8028b8140c34e51d325fd2eec2c1472b8 100644 (file)
@@ -1197,7 +1197,7 @@ namespace {
                        istringstream is(out);
                        string line;
                        getline(is, line);
-                       if (line.find("on line") != 0)
+                       if (!prefixIs(line, "on line"))
                                break; // error message not identified
                        getline(is, line);
                        size_t pos = line.find('^');