fix compiler warnings in new mathfrac/binom code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29257 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-04-16 09:15:24 +00:00
parent d8396e9c7f
commit 37d6ef964c

View File

@ -385,15 +385,16 @@ void InsetMathFrac::octave(OctaveStream & os) const
void InsetMathFrac::mathmlize(MathStream & os) const
{
switch (kind_) {
case FRAC:
os << MTag("mfrac") << cell(0) << cell(1) << ETag("mfrac");
break;
case DFRAC:
os << MTag("mdfrac") << cell(0) << cell(1) << ETag("mdfrac");
break;
case TFRAC:
os << MTag("mtfrac") << cell(0) << cell(1) << ETag("mtfrac");
break;
case FRAC:
default:
os << MTag("mfrac") << cell(0) << cell(1) << ETag("mfrac");
break;
}
}
@ -544,12 +545,13 @@ void InsetMathBinom::mathmlize(MathStream & os) const
case BINOM:
os << MTag("mbinom") << cell(0) << cell(1) << ETag("mbinom");
break;
case DBINOM:
os << MTag("mdbinom") << cell(0) << cell(1) << ETag("mdbinom");
break;
case TBINOM:
os << MTag("mtbinom") << cell(0) << cell(1) << ETag("mtbinom");
break;
case DBINOM:
default:
os << MTag("mdbinom") << cell(0) << cell(1) << ETag("mdbinom");
break;
}
}