]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDelim.cpp
Fix #10863 compiler warnings.
[lyx.git] / src / mathed / InsetMathDelim.cpp
index e039e64a19170c9b507f725808c24d8b78002ca5..d66495933d51464a539ec9312572f7c22c581a20 100644 (file)
@@ -69,21 +69,8 @@ void InsetMathDelim::validate(LaTeXFeatures & features) const
        // The delimiters may be used without \left or \right as well.
        // Therefore they are listed in lib/symbols, and if they have
        // requirements, we need to add them here.
-       MathWordList const & words = mathedWordList();
-       MathWordList::const_iterator it = words.find(left_);
-       if (it != words.end())
-       {
-               string const req = it->second.requires;
-               if (!req.empty())
-                       features.require(req);
-       }
-       it = words.find(right_);
-       if (it != words.end())
-       {
-               string const req = it->second.requires;
-               if (!req.empty())
-                       features.require(req);
-       }
+       validate_math_word(features, left_);
+       validate_math_word(features, right_);
 }
 
 
@@ -194,19 +181,19 @@ void InsetMathDelim::mathematica(MathematicaStream & os) const
 void InsetMathDelim::mathmlize(MathStream & os) const
 {
        os << "<mo form='prefix' fence='true' stretchy='true' symmetric='true'>"
-          << convertDelimToXMLEscape(left_) 
+          << convertDelimToXMLEscape(left_)
           << "</mo>\n"
-          << cell(0) 
-          << "\n<mo form='postfix' fence='true' stretchy='true' symmetric='true'>" 
-          << convertDelimToXMLEscape(right_) 
+          << cell(0)
+          << "\n<mo form='postfix' fence='true' stretchy='true' symmetric='true'>"
+          << convertDelimToXMLEscape(right_)
           << "</mo>\n";
 }
 
 
 void InsetMathDelim::htmlize(HtmlStream & os) const
 {
-       os << convertDelimToXMLEscape(left_) 
-          << cell(0) 
+       os << convertDelimToXMLEscape(left_)
+          << cell(0)
           << convertDelimToXMLEscape(right_);
 }