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

List:       kde-commits
Subject:    kdenetwork/kit
From:       Volker Augustin <volker.augustin () perfektionismus ! de>
Date:       2003-01-25 6:43:49
[Download RAW message or body]

CVS commit by augustin: 

Replace comparison to QString::null with a call to member function .isNull().


  M +1 -1      kitapp.cpp   1.11
  M +1 -1      kituserprofile.cpp   1.10
  M +1 -1      tmessage.cpp   1.47
  M +4 -4      twindow.cpp   1.53


--- kdenetwork/kit/kitapp.cpp  #1.10:1.11
@@ -73,5 +73,5 @@ void KitApp::popProfileInfo(bool useDefa
                 }
         }
-        if(!profile || user == QString::null)
+        if(!profile || user.isNull())
         {
                 KitProfileInfo picker;

--- kdenetwork/kit/kituserprofile.cpp  #1.9:1.10
@@ -208,5 +208,5 @@ void KitUserProfile::load(void)
                 {
                         myData.awayMessageNames += mapIterator.key();
-                        if(mapIterator.data() == QString::null)
+                        if(mapIterator.data().isNull())
                                 myData.awayMessages += QString(" ");
                         else

--- kdenetwork/kit/tmessage.cpp  #1.46:1.47
@@ -515,5 +515,5 @@ void TMessage::openLogFile(void)
 
         QString logPath = KGlobal::dirs()->saveLocation("data", KIT_NAME + "/" + \
                myName + "/", true);
-        if(logPath == QString::null)
+        if(logPath.isNull())
         {
                 KMessageBox::error(0, i18n("Unable to open logfile directory"));

--- kdenetwork/kit/twindow.cpp  #1.52:1.53
@@ -175,5 +175,5 @@ void TWindow::starsAndTheMoon(void)
         else
                 resize(300, 300);
-        if(profile->data()->name != QString::null) \
setCaption(profile->data()->name); +        if(!profile->data()->name.isNull()) \
setCaption(profile->data()->name);  switch((NET::MappingState)profile->data()->state)
         {       
@@ -217,5 +217,5 @@ void TWindow::away(void)
         if(aim.getStatus() != TAIM_ONLINE) return;
         awayMessage = doAway();
-        if(awayMessage != QString::null)
+        if(!awayMessage.isNull())
         {
                 emit globalAway(true, awayMessage);
@@ -564,5 +564,5 @@ void TWindow::awayPicker(TMessage &a)
 {
         QString message = doAway();
-        if(message != QString::null)
+        if(!message.isNull())
                 a.setAway(true, message);
 }
@@ -776,5 +776,5 @@ TMessage &TWindow::messageWindow(const Q
                 connect(this, SIGNAL(globalColors(const QColor &, const QColor &, \
                bool)), targetWindow, SLOT(setColors(const QColor &, const QColor &, \
                bool)) );
                 connect(this, SIGNAL(globalICQ(bool)), targetWindow, \
                SLOT(setICQ(bool)) );
-                if(awayMessage != QString::null) targetWindow->setAway(true, \
awayMessage); +                if(!awayMessage.isNull()) targetWindow->setAway(true, \
awayMessage);  }
         return *targetWindow;


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

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