diff --git a/core/textpage.cpp b/core/textpage.cpp index a5f29f686..4ca116c01 100644 --- a/core/textpage.cpp +++ b/core/textpage.cpp @@ -1147,10 +1147,10 @@ void TextPagePrivate::setWordList(const TextList &list) */ static void removeSpace(TextList *words) { - TextList::Iterator it = words->begin(), itEnd = words->end(); + TextList::Iterator it = words->begin(); const QString str(' '); - while ( it != itEnd ) + while ( it != words->end() ) { if((*it)->text() == str) {