]> git.lyx.org Git - features.git/commitdiff
Fix #10864 compiler warnings.
authorRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 04:53:45 +0000 (23:53 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 04:53:45 +0000 (23:53 -0500)
src/mathed/MathSupport.cpp

index 57eca6ee31ff8bea6a466b7b5a48f262c20e1545..325d640915e4ea2500693451e38494d4096c2286 100644 (file)
@@ -495,7 +495,7 @@ public:
        }
 };
 
-static init_deco_table dummy;
+static init_deco_table dummy_deco_table;
 
 
 deco_struct const * search_deco(docstring const & name)
@@ -640,8 +640,8 @@ void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
                } else {
                        int xp[32];
                        int yp[32];
-                       int const n = int(d[i++]);
-                       for (int j = 0; j < n; ++j) {
+                       int const n2 = int(d[i++]);
+                       for (int j = 0; j < n2; ++j) {
                                double xx = d[i++];
                                double yy = d[i++];
 //          lyxerr << ' ' << xx << ' ' << yy << ' ';
@@ -653,7 +653,7 @@ void mathed_draw_deco(PainterInfo & pi, int x, int y, int w, int h,
                                yp[j] = int(y + yy + 0.5);
                                //  lyxerr << "P[" << j ' ' << xx << ' ' << yy << ' ' << x << ' ' << y << ']';
                        }
-                       pi.pain.lines(xp, yp, n, pi.base.font.color());
+                       pi.pain.lines(xp, yp, n2, pi.base.font.color());
                }
        }
 }