X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLayoutModuleList.cpp;h=a6507212a89c46d5bc17db028a1c15d544487cbe;hb=e55aa4359f1c31065ead0de542fa134ee6acb6f7;hp=7b79531efc47a102bd4187caba9ce46cdefe7b3c;hpb=ea0501025e880514787d2148d58d49caa7859eaf;p=lyx.git diff --git a/src/LayoutModuleList.cpp b/src/LayoutModuleList.cpp index 7b79531efc..a6507212a8 100644 --- a/src/LayoutModuleList.cpp +++ b/src/LayoutModuleList.cpp @@ -59,7 +59,7 @@ bool LayoutModuleList::moduleCanBeAdded(string const & modName, // Is the module already present? const_iterator it = begin(); const_iterator const en = end(); - for (; it != en; it++) + for (; it != en; ++it) if (*it == modName) return false; @@ -131,7 +131,7 @@ void LayoutModuleList::addDefaultModules(LayoutFile const * const lay, iterator insertpos = begin(); int numinserts = 0; - for (; mit != men; mit++) { + for (; mit != men; ++mit) { string const & modName = *mit; // make sure the user hasn't removed it if (find(removedModules.begin(), removedModules.end(), modName) != @@ -192,7 +192,7 @@ bool LayoutModuleList::removeBadModules(LayoutFile const * const lay) for (; !excluded && pit != pen; ++pit) { if (!LyXModule::areCompatible(modname, *pit)) { LYXERR0("Module " << modname << - " dropped becuase it conflicts with provided module `" << *pit << "'."); + " dropped because it conflicts with provided module `" << *pit << "'."); consistent = false; excluded = true; }