Skip to content

Commit e0a5758

Browse files
committed
Remove a variable which is used only once in a following if() statement.
1 parent e1a2d0f commit e0a5758

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/cells/TextCell.cpp

+3-7
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,7 @@ wxString TextCell::ToMathML() const {
10321032
// doesn't support this currently => Commenting it out. if((GetTextStyle() ==
10331033
// TS_SPECIAL_CONSTANT) && (text == wxS("d")))
10341034
// text = wxS("ࡢ");
1035-
bool keepPercent = m_configuration->CheckKeepPercent();
1036-
if (!keepPercent) {
1035+
if (!m_configuration->CheckKeepPercent()) {
10371036
if (text == wxS("%e"))
10381037
text = wxS("e");
10391038
if (text == wxS("%catalan"))
@@ -1045,9 +1044,7 @@ wxString TextCell::ToMathML() const {
10451044
case TS_VARIABLE: {
10461045
text = GetGreekStringUnicode();
10471046

1048-
bool keepPercent = m_configuration->CheckKeepPercent();
1049-
1050-
if (!keepPercent) {
1047+
if (!m_configuration->CheckKeepPercent()) {
10511048
if (text == wxS("%pi"))
10521049
text = wxS("\u03C0");
10531050
}
@@ -1113,8 +1110,7 @@ wxString TextCell::ToOMML() const {
11131110
// doesn't support this currently => Commenting it out. if((GetTextStyle() ==
11141111
// TS_SPECIAL_CONSTANT) && (text == wxS("d")))
11151112
// text = wxS("ࡢ");
1116-
bool keepPercent = m_configuration->CheckKeepPercent();
1117-
if (!keepPercent) {
1113+
if (!m_configuration->CheckKeepPercent()) {
11181114
if (text == wxS("%e"))
11191115
text = wxS("e");
11201116
if (text == wxS("%catalan"))

0 commit comments

Comments
 (0)