]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.cpp
Only set buffer if it is not null.
[lyx.git] / src / mathed / MathFactory.cpp
index afee57ef1c305a4ca1ed9c010b280984cc7d3712..20720f1fceccdf9a378b2433be1e66e00b99b513 100644 (file)
@@ -203,7 +203,7 @@ void initSymbols()
                        } else
                                htmlname = xmlname = "";
                        MacroTable::iterator it = MacroTable::globalMacros().insert(
-                                       0, from_utf8(macro));
+                                       nullptr, from_utf8(macro));
                        if (!extra.empty() || !htmlname.empty() || !xmlname.empty() || !required.empty()) {
                                MathWordList::iterator wit = theMathWordList.find(it->first);
                                if (wit != theMathWordList.end())
@@ -444,9 +444,9 @@ latexkeys const * in_word_set(docstring const & str)
 {
        MathWordList::iterator it = theMathWordList.find(str);
        if (it == theMathWordList.end())
-               return 0;
+               return nullptr;
        if (it->second.inset == "macro")
-               return 0;
+               return nullptr;
        return &(it->second);
 }