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

List:       kde-commits
Subject:    KDE/kdevplatform/shell
From:       Aleix Pol Gonzalez <aleixpol () gmail ! com>
Date:       2009-08-11 15:08:17
Message-ID: 1250003297.311152.13391.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1010070 by apol:

If iterating over a list of main windows.
I wanted to shut the warning by changing from uint->int but this looks the way to go. \
(we don't iterate a list with subscripts)


 M  +2 -2      mainwindow.cpp  


--- trunk/KDE/kdevplatform/shell/mainwindow.cpp #1010069:1010070
@@ -153,8 +153,8 @@
         }
     }
     
-    for(uint a = 1; a < Core::self()->uiControllerInternal()->mainWindows().size(); \
                ++a) {
-        foreach(KXMLGUIClient* client, \
Core::self()->uiControllerInternal()->mainWindows()[a]->guiFactory()->clients()) { +  \
foreach(Sublime::MainWindow* w, Core::self()->uiControllerInternal()->mainWindows()) \
{ +        foreach(KXMLGUIClient* client, w->guiFactory()->clients()) {
             foreach(QAction* action, client->actionCollection()->actions()) {
                 kDebug() << "transferring setting shortcut for" << \
action->objectName();  if(shortcuts.contains(action->objectName())) {


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

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