]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSideset.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathSideset.cpp
index 642e07c16a7c0d664143937ab51ad9f3693d2a32..bf3f6cb41af354460919e2b42a007a191122ecf8 100644 (file)
@@ -194,7 +194,7 @@ void InsetMathSideset::metrics(MetricsInfo & mi, Dimension & dim) const
                tr().metrics(mi, dimtr);
        }
 
-       BufferView & bv = *mi.base.bv;
+       BufferView const & bv = *mi.base.bv;
        // FIXME: data copying... not very efficient.
 
        dim.wid = nwid(bv) + nker(mi.base.bv) + 2 * dx;
@@ -212,7 +212,7 @@ void InsetMathSideset::metrics(MetricsInfo & mi, Dimension & dim) const
 void InsetMathSideset::draw(PainterInfo & pi, int x, int y) const
 {
        Changer dummy2 = pi.base.changeEnsureMath();
-       BufferView & bv = *pi.base.bv;
+       BufferView const & bv = *pi.base.bv;
        nuc().draw(pi, x + dxn(bv), y);
        if (!scriptl_)
                bl().draw(pi, x          , y);
@@ -334,7 +334,7 @@ bool InsetMathSideset::idxUpDown(Cursor & cur, bool up) const
 }
 
 
-void InsetMathSideset::write(WriteStream & os) const
+void InsetMathSideset::write(TeXMathStream & os) const
 {
        MathEnsurer ensurer(os);
 
@@ -385,7 +385,7 @@ void InsetMathSideset::normalize(NormalStream & os) const
 }
 
 
-void InsetMathSideset::mathmlize(MathStream & ms) const
+void InsetMathSideset::mathmlize(MathMLStream & ms) const
 {
        // FIXME This is only accurate if both scriptl_ and scriptr_ are true
        if (!scriptl_)