]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathChar.cpp
index aa1ddf8c5b7657c02393f4c1906e14a1ad29c730..a02f54b43ac376f73f69894b0bb4c16c96d903f5 100644 (file)
@@ -121,7 +121,7 @@ void InsetMathChar::metrics(MetricsInfo & mi, Dimension & dim) const
        } else if (!isASCII(char_) && Encodings::unicodeCharInfo(char_).isUnicodeSymbol()) {
                Changer dummy1 = mi.base.changeFontSet("mathnormal");
                Changer dummy2 = Encodings::isMathAlpha(char_)
-                               ? Changer()
+                               ? noChange()
                                : mi.base.font.changeShape(UP_SHAPE);
                dim = theFontMetrics(mi.base.font).dimension(char_);
                kerning_ = -mathed_char_kerning(mi.base.font, char_);
@@ -166,7 +166,7 @@ void InsetMathChar::draw(PainterInfo & pi, int x, int y) const
                } else if (!isASCII(char_) && Encodings::unicodeCharInfo(char_).isUnicodeSymbol()) {
                        Changer dummy1 = pi.base.changeFontSet("mathnormal");
                        Changer dummy2 = Encodings::isMathAlpha(char_)
-                                       ? Changer()
+                                       ? noChange()
                                        : pi.base.font.changeShape(UP_SHAPE);
                        pi.draw(x, y, char_);
                        return;
@@ -195,7 +195,7 @@ void InsetMathChar::drawT(TextPainter & pain, int x, int y) const
 }
 
 
-void InsetMathChar::write(WriteStream & os) const
+void InsetMathChar::write(TeXMathStream & os) const
 {
        os.os().put(char_);
 }
@@ -228,7 +228,7 @@ void InsetMathChar::octave(OctaveStream & os) const
 // mathalpha, then we'll treat it as an identifier, otherwise as an
 // operator.
 // Worst case: We get bad spacing, or bad italics.
-void InsetMathChar::mathmlize(MathStream & ms) const
+void InsetMathChar::mathmlize(MathMLStream & ms) const
 {
        std::string entity;
        switch (char_) {