[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kspell
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2003-04-06 3:34:01
[Download RAW message or body]

CVS commit by wheeler: 

minor cleanups from frerich


  M +3 -3      ksyntaxhighlighter.cpp   1.2


--- kdelibs/kspell/ksyntaxhighlighter.cpp  #1.1:1.2
@@ -278,6 +278,6 @@ void KDictSpellingHighlighter::slotSpell
              this, SLOT( slotDictionaryChanged() ));
     d->spell = spell;
-    QStringList l = KSpellingHighlighter::personalWords();
-    for ( QStringList::Iterator it = l.begin(); it != l.end(); ++it ) {
+    const QStringList l = KSpellingHighlighter::personalWords();
+    for ( QStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) {
         d->spell->addPersonal( *it );
     }
@@ -307,5 +307,5 @@ bool KDictSpellingHighlighter::isMisspel
             d->autoDict.replace( word, NotOkay );
         }
-        return true && d->active;
+        return d->active;
     }
     if ( !d->sDict.isEmpty() && d->sDict[word] == Okay ) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic