From: Richard Heck Date: Wed, 11 Feb 2009 19:48:54 +0000 (+0000) Subject: Access private data directly. X-Git-Tag: 2.0.0~7250 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=61bef3b04398300882c41dcef5c3de9d225c215f;p=features.git Access private data directly. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28452 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 97510126b6..70f04c1a8a 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -1480,7 +1480,7 @@ bool BufferParams::removeBadModules() { // we'll write a new list of modules, since we can't just remove them, // as that would invalidate our iterators - LayoutModuleList oldModules = getModules(); + LayoutModuleList oldModules = layoutModules_; clearLayoutModules(); LayoutModuleList const & provmods = baseClass()->providedModules(); @@ -1572,7 +1572,7 @@ bool BufferParams::checkModuleConsistency() { // Perform a consistency check on the set of modules. We need to make // sure that none of the modules exclude each other and that requires // are satisfied. - LayoutModuleList oldModules = getModules(); + LayoutModuleList oldModules = layoutModules_; clearLayoutModules(); LayoutModuleList::const_iterator oit = oldModules.begin(); LayoutModuleList::const_iterator oen = oldModules.end(); @@ -1789,8 +1789,8 @@ bool BufferParams::moduleCanBeAdded(string const & modName) const return false; } // and then the selected modules - LayoutModuleList::const_iterator mit = getModules().begin(); - LayoutModuleList::const_iterator const men = getModules().end(); + LayoutModuleList::const_iterator mit = layoutModules_.begin(); + LayoutModuleList::const_iterator const men = layoutModules_.end(); for (; mit != men; ++mit) if (!LyXModule::areCompatible(modName, *mit)) return false; @@ -1800,7 +1800,7 @@ bool BufferParams::moduleCanBeAdded(string const & modName) const if (reqs.empty()) return true; - mit = getModules().begin(); // reset + mit = layoutModules_.begin(); // reset vector::const_iterator rit = reqs.begin(); vector::const_iterator ren = reqs.end(); bool foundone = false;