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

List:       kde-commits
Subject:    KDE/kdebase/workspace/kcontrol/access
From:       Dirk Mueller <mueller () kde ! org>
Date:       2007-02-23 20:25:19
Message-ID: 1172262319.792505.9715.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 636680 by mueller:

fix string literal comparison


 M  +2 -2      kaccess.cpp  


--- trunk/KDE/kdebase/workspace/kcontrol/access/kaccess.cpp #636679:636680
@@ -384,7 +384,7 @@
       if (_kNotifyModifiers)
       for (int i = 0; i < 8; i++) {
          if (keys[i] != -1) {
-            if ( (modifierKeys[keys[i]].latchedText == "")
+            if ( !strcmp(modifierKeys[keys[i]].latchedText, "")
                 && ( (((mods >> i) & 0x101) != 0) != (((state >> i) & 0x101) != 0) ))
             {
                if ((mods >> i) & 1) {
@@ -394,7 +394,7 @@
                   KNotification::event ("lockkey-unlocked", i18n(modifierKeys[keys[i]].unlatchedText));
                }
             }
-            else if ((modifierKeys[keys[i]].latchedText != "")
+            else if (strcmp(modifierKeys[keys[i]].latchedText, "")
                 && ( ((mods >> i) & 0x101) != ((state >> i) & 0x101) ))
             {
                if ((mods >> i) & 0x100) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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