]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_support.C
Always use std::endl with lyxerr
[lyx.git] / src / mathed / math_support.C
index b154339045b8f96edbdb731274816e7ca535d038..085479df10532afa4ec7f94b6d0e1491827291ef 100644 (file)
@@ -18,6 +18,7 @@
 #include <map>
 
 using std::max;
+using std::endl;
 
 
 ///
@@ -407,8 +408,8 @@ void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
 
        deco_struct const * mds = search_deco(name);
        if (!mds) {
-               lyxerr << "Deco was not found. Programming error?\n";
-               lyxerr << "name: '" << name << "'\n";
+               lyxerr << "Deco was not found. Programming error?" << endl;
+               lyxerr << "name: '" << name << "'" << endl;
                return;
        }
 
@@ -608,11 +609,11 @@ fontinfo fontinfos[] = {
 
 fontinfo * lookupFont(string const & name)
 {
-       //lyxerr << "searching font '" << name << "'\n";
+       //lyxerr << "searching font '" << name << "'" << endl;
        int const n = sizeof(fontinfos) / sizeof(fontinfo);
        for (int i = 0; i < n; ++i)
                if (fontinfos[i].cmd_ == name) {
-                       //lyxerr << "found '" << i << "'\n";
+                       //lyxerr << "found '" << i << "'" << endl;
                        return fontinfos + i;
                }
        return 0;
@@ -652,7 +653,8 @@ void fakeFont(string const & orig, string const & fake)
                forig->shape_  = ffake->shape_;
                forig->color_  = ffake->color_;
        } else {
-               lyxerr << "Can't fake font '" << orig << "' with '" << fake << "'\n";
+               lyxerr << "Can't fake font '" << orig << "' with '"
+                      << fake << "'" << endl;
        }
 }