From 3b09ef61a6d78d11f62b0b54851cfb1766e68484 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Mon, 4 May 2020 13:45:39 -0400 Subject: [PATCH] Fix remaining (I think) requires keyword issues. --- src/ModuleList.h | 2 +- src/mathed/MathFactory.cpp | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ModuleList.h b/src/ModuleList.h index 252ebfd0e5..1095f9ee64 100644 --- a/src/ModuleList.h +++ b/src/ModuleList.h @@ -52,7 +52,7 @@ public: LyXModule(std::string const & name, std::string const & id, std::string const & description, std::vector const & packagelist, - std::vector const & requires, + std::vector const & required, std::vector const & excludes, std::string const & catgy, bool const local); /// whether the required packages are available diff --git a/src/mathed/MathFactory.cpp b/src/mathed/MathFactory.cpp index f4b5668718..698d8f4a19 100644 --- a/src/mathed/MathFactory.cpp +++ b/src/mathed/MathFactory.cpp @@ -189,20 +189,20 @@ void initSymbols() // \def\macroname{definition} extra xmlname requires istringstream is(line); string macro; - string requires; + string required; string extra; string xmlname; bool hidden = false; - is >> setw(65536) >> macro >> requires; + is >> setw(65536) >> macro >> required; if ((is >> xmlname)) { - extra = requires; - if (!(is >> requires)) - requires = ""; + extra = required; + if (!(is >> required)) + required = ""; } else xmlname = ""; MacroTable::iterator it = MacroTable::globalMacros().insert( 0, from_utf8(macro)); - if (!extra.empty() || !xmlname.empty() || !requires.empty()) { + if (!extra.empty() || !xmlname.empty() || !required.empty()) { MathWordList::iterator wit = theMathWordList.find(it->first); if (wit != theMathWordList.end()) LYXERR(Debug::MATHED, "readSymbols: inset " @@ -213,11 +213,11 @@ void initSymbols() tmp.name = it->first; tmp.extra = from_utf8(extra); tmp.xmlname = from_utf8(xmlname); - if (requires == "hiddensymbol") { - requires = ""; + if (required == "hiddensymbol") { + required = ""; tmp.hidden = hidden = true; } else - tmp.required = requires; + tmp.required = required; theMathWordList[it->first] = tmp; wit = theMathWordList.find(it->first); it->second.setSymbol(&(wit->second)); @@ -230,7 +230,7 @@ void initSymbols() << " draw: 0" << " extra: " << extra << " xml: " << xmlname - << " requires: " << requires + << " requires: " << required << " hidden: " << hidden << '\''); continue; }