mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Fix possibly uninitialized use of variables
This commit is contained in:
parent
b62c6a1c5e
commit
bf581924c9
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user