commit bf581924c9d2b86a3ea1e93cbef0906d37fc9fd2
Author: Stephan Witt <[email protected]>
Date: Wed Sep 3 00:07:26 2014 +0200
Fix possibly uninitialized use of variables
diff --git a/src/mathed/InsetMathXArrow.cpp b/src/mathed/InsetMathXArrow.cpp
index b91c4ce..9e3c91d 100644
--- a/src/mathed/InsetMathXArrow.cpp
+++ b/src/mathed/InsetMathXArrow.cpp
@@ -10,6 +10,8 @@
#include <config.h>
+#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 << "<munderover accent='false' accentunder='false'>"
<< arrow << cell(1) << cell(0)
<< "</munderover>";
@@ -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")