X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_write.C;h=959a5bcb7fb8115733dfabc0ebe1a6cef804ba80;hb=8dccec5c46a1689fe3ea37144252e952771e1e1c;hp=97aa9a5071beb891dc914a256ce23656917905fd;hpb=75c5c8c9e51469822100d70a1ead0d7f8d3f69de;p=lyx.git diff --git a/src/mathed/math_write.C b/src/mathed/math_write.C index 97aa9a5071..959a5bcb7f 100644 --- a/src/mathed/math_write.C +++ b/src/mathed/math_write.C @@ -16,6 +16,7 @@ */ #include + #include "LString.h" #include "math_inset.h" #include "math_iter.h" @@ -118,10 +119,10 @@ void MathDelimInset::Write(string & outf) } else { if (left == '{' || left == '}') { outf += '\\'; - outf += (char) left; + outf += char(left); outf += ' '; } else { - outf += (char) left; + outf += char(left); outf += ' '; } } @@ -134,10 +135,10 @@ void MathDelimInset::Write(string & outf) } else { if (right == '{' || right == '}') { outf += '\\'; - outf += (char) right; + outf += char(right); outf += ' '; } else { - outf += (char) right; + outf += char(right); outf += ' '; } } @@ -197,7 +198,7 @@ void MathAccentInset::Write(string & outf) outf += ' '; } } else - outf += (char) c; + outf += char(c); if (fn>= LM_TC_RM && fn<= LM_TC_TEXTRM) outf += '}'; @@ -315,7 +316,7 @@ void MathParInset::Write(string & outf) lyxerr <<"Math warning: Unexpected closing brace." << endl; else - outf += (char) *s; + outf += char(*s); } s++; ls--; } @@ -397,7 +398,7 @@ void MathMatrixInset::Write(string & outf) outf += '}'; if (v_align == 't' || v_align == 'b') { outf += '['; - outf += (char) v_align; + outf += char(v_align); outf += ']'; } outf += '{';