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

List:       kde-commits
Subject:    kdesdk/kapptemplate/kapp
From:       Volker Augustin <volker.augustin () perfektionismus ! de>
Date:       2003-01-25 6:39:54
[Download RAW message or body]

CVS commit by augustin: 

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


  M +2 -2      app.cpp   1.11


--- kdesdk/kapptemplate/kapp/app.cpp  #1.10:1.11
@@ -125,5 +125,5 @@ void ${APP_NAME}::saveProperties(KConfig
     // later when this app is restored
 
-    if (m_view->currentURL() != QString::null)
+    if (!m_view->currentURL().isNull())
         config->writeEntry("lastURL", m_view->currentURL());
 }
@@ -138,5 +138,5 @@ void ${APP_NAME}::readProperties(KConfig
     QString url = config->readEntry("lastURL");
 
-    if (url != QString::null)
+    if (!url.isNull())
         m_view->openURL(KURL(url));
 }


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

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