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

List:       kde-commits
Subject:    kdeartwork/kwin-styles/icewm
From:       Antonio Larrosa Jimenez <larrosa () kde ! org>
Date:       2003-02-26 17:53:40
[Download RAW message or body]

CVS commit by antlarr: 

Removed some comparisons to "" and replaced
if ( s.length() > 0 ) with a more clear "if (!s.isEmpty())"


  M +2 -2      config/config.cpp   1.12
  M +5 -5      icewm.cpp   1.25


--- kdeartwork/kwin-styles/icewm/config/config.cpp  #1.11:1.12
@@ -212,5 +212,5 @@ void IceWMConfig::findIceWMThemes()
                 themeName = "";
 
-        if (themeName == "")
+        if (themeName.isEmpty())
                 themeListBox->setCurrentItem( 
                         themeListBox->findItem( i18n("Infadel #2 (default)") ) );

--- kdeartwork/kwin-styles/icewm/icewm.cpp  #1.24:1.25
@@ -258,5 +258,5 @@ void ThemeHandler::initTheme()
 {
         // Add a slash if required
-        if ( themeName != "" )
+        if ( !themeName.isEmpty() )
                 themeName += "/";
 
@@ -316,5 +316,5 @@ void ThemeHandler::initTheme()
         {
                 s = config.readEntry("ColorActiveTitleBarShadow", "");
-                if (s.length() > 0)
+                if (!s.isEmpty())
                 {
                         *colorActiveTitleTextShadow = decodeColor( s );
@@ -324,5 +324,5 @@ void ThemeHandler::initTheme()
 
                 s = config.readEntry("ColorNormalTitleBarShadow", "");
-                if (s.length() > 0)
+                if (!s.isEmpty())
                 {
                         *colorInActiveTitleTextShadow = decodeColor( s );
@@ -790,5 +790,5 @@ IceWMClient::~IceWMClient()
 void IceWMClient::addClientButtons( const QString& s )
 {
-        if (s.length() > 0)
+        if (!s.isEmpty())
                 for(unsigned int i = 0; i < s.length(); i++)    
                 {


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

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