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

List:       kde-commits
Subject:    kdesdk/kbabel/kbabel
From:       Waldo Bastian <bastian () kde ! org>
Date:       2005-02-25 14:58:24
Message-ID: 20050225145824.BADD1EF06 () office ! kde ! org
[Download RAW message or body]

CVS commit by waba: 

Don't crash if the spell checker doesn't work


  M +2 -1      hidingmsgedit.h   1.16
  M +2 -1      kbhighlighting.h   1.7


--- kdesdk/kbabel/kbabel/hidingmsgedit.h  #1.15:1.16
@@ -32,4 +32,5 @@
 
 #include <qwidgetstack.h>
+#include <qguardedptr.h>
 #include <qptrlist.h>
 
@@ -153,5 +154,5 @@ private: // Private attributes
   uint _numberOfPlurals;
   
-  KSpell* _spell;
+  QGuardedPtr<KSpell> _spell;
 };
 

--- kdesdk/kbabel/kbabel/kbhighlighting.h  #1.6:1.7
@@ -41,4 +41,5 @@
 #include <qobject.h>
 #include <qstringlist.h>
+#include <qguardedptr.h>
 
 class KSpell;
@@ -86,5 +87,5 @@ class KBabelHighlighter : public QObject
 
     static QDict<int> dict;
-    KSpell *mSpell;
+    QGuardedPtr<KSpell> mSpell;
     QString currentWord;
     int currentPos;


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

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