From: Richard Heck Date: Wed, 9 Jun 2010 20:56:42 +0000 (+0000) Subject: Minor cleanup. X-Git-Tag: 2.0.0~3147 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d205cd4b68ba171b943e1f1c3c6c16c736fff295;p=features.git Minor cleanup. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34639 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index d10fe4213f..9faead6ef5 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -3072,11 +3072,13 @@ bool Paragraph::isSeparator(pos_type pos) const void Paragraph::deregisterWords() { - map::const_iterator itl; - Private::Words::const_iterator it; - for (itl = d->words_.begin(); itl != d->words_.end(); ++itl) { + map::const_iterator itl = d->words_.begin(); + map::const_iterator ite = d->words_.end(); + for (; itl != ite; ++itl) { WordList * wl = theWordList(itl->first); - for (it = (itl->second).begin(); it != (itl->second).end(); ++it) + Private::Words::const_iterator it = (itl->second).begin(); + Private::Words::const_iterator et = (itl->second).end(); + for (; it != et; ++it) wl->remove(*it); } d->words_.clear();