From bf581924c9d2b86a3ea1e93cbef0906d37fc9fd2 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Wed, 3 Sep 2014 00:07:26 +0200 Subject: [PATCH] Fix possibly uninitialized use of variables --- src/mathed/InsetMathXArrow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mathed/InsetMathXArrow.cpp b/src/mathed/InsetMathXArrow.cpp index b91c4ce21d..9e3c91d003 100644 --- a/src/mathed/InsetMathXArrow.cpp +++ b/src/mathed/InsetMathXArrow.cpp @@ -10,6 +10,8 @@ #include +#include "support/lassert.h" + #include "InsetMathXArrow.h" #include "MathData.h" #include "MathStream.h" @@ -112,6 +114,10 @@ void InsetMathXArrow::mathmlize(MathStream & ms) const arrow = "⇌"; else if (name_ == "xmapsto") arrow = "↦"; + else { + lyxerr << "mathmlize conversion for '" << name_ << "' not implemented" << endl; + LASSERT(false, arrow = "→"); + } ms << "" << arrow << cell(1) << cell(0) << ""; @@ -152,6 +158,10 @@ void InsetMathXArrow::htmlize(HtmlStream & os) const arrow = "⇌"; else if (name_ == "xmapsto") arrow = "↦"; + else { + lyxerr << "htmlize conversion for '" << name_ << "' not implemented" << endl; + LASSERT(false, arrow = "→"); + } os << MTag("span", "class='xarrow'") << MTag("span", "class='xatop'") << cell(0) << ETag("span") << MTag("span", "class='xabottom'") << arrow << ETag("span") -- 2.39.2