[Uml-devel] KDE/kdesdk/umbrello/umbrello

Andi Fischer andi.fischer at hispeed.ch
Tue Sep 30 11:16:01 UTC 2008


SVN commit 866242 by fischer:

Krazy: fixing postfix usage of ++ and --.

 M  +1 -2      notewidget.cpp  
 M  +7 -7      toolbarstatefactory.cpp  
 M  +1 -3      worktoolbar.cpp  
 M  +0 -2      worktoolbar.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/notewidget.cpp #866241:866242
@@ -1,5 +1,4 @@
 /***************************************************************************
- *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
@@ -310,7 +309,7 @@
     if( text.length() == 0 )
         return;
 
-    for (int i = 0; i <= text.length(); i++) {
+    for (int i = 0; i <= text.length(); ++i) {
         if (i < text.length()) {
             c = text[i];
         } else {
--- trunk/KDE/kdesdk/umbrello/umbrello/toolbarstatefactory.cpp #866241:866242
@@ -1,11 +1,10 @@
 /***************************************************************************
- *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
  *   (at your option) any later version.                                   *
  *                                                                         *
- *   copyright (C) 2004-2006                                               *
+ *   copyright (C) 2004-2008                                               *
  *   Umbrello UML Modeller Authors <uml-devel at uml.sf.net>                  *
  ***************************************************************************/
 #include "toolbarstatefactory.h"
@@ -22,17 +21,18 @@
 
 ToolBarStateFactory::ToolBarStateFactory()
 {
-    for (int i = 0; i < NR_OF_TOOLBAR_STATES; i++)
+    for (int i = 0; i < NR_OF_TOOLBAR_STATES; ++i)
     {
-        m_states[i] = NULL;
+        m_states[i] = 0;
     }
 }
 
 ToolBarStateFactory::~ToolBarStateFactory()
 {
-    for (int i = 0; i < NR_OF_TOOLBAR_STATES; i++)
+    for (int i = 0; i < NR_OF_TOOLBAR_STATES; ++i)
     {
-        if (m_states[i] != NULL) delete m_states[i];
+        if (m_states[i])
+            delete m_states[i];
     }
 }
 
@@ -41,7 +41,7 @@
 {
     int key = getKey(toolbarButton);
 
-    if (m_states[key] == NULL)
+    if (m_states[key] == 0)
     {
         switch (key)
         {
--- trunk/KDE/kdesdk/umbrello/umbrello/worktoolbar.cpp #866241:866242
@@ -1,5 +1,4 @@
 /***************************************************************************
- *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
@@ -14,7 +13,6 @@
 
 // qt/kde include files
 #include <QtGui/QAction>
-#include <Q3MainWindow>
 #include <QtGui/QToolButton>
 #include <kdebug.h>
 #include <klocale.h>
@@ -344,7 +342,7 @@
                                     QCursor(),
                                     SLOT(slotArrow())));
 
-    for (uint i = 0; i < n_buttonInfos; i++) {
+    for (uint i = 0; i < n_buttonInfos; ++i) {
         const ButtonInfo& info = buttonInfo[i];
         m_ToolButtons.insert(info.tbb,
                              ToolButton(info.btnName,
--- trunk/KDE/kdesdk/umbrello/umbrello/worktoolbar.h #866241:866242
@@ -1,5 +1,4 @@
 /***************************************************************************
- *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
@@ -197,7 +196,6 @@
     /**
       * These slots are triggered by the buttons. They call buttonChanged with
       * the button id
-      *@{
       */
     void slotArrow();
     void slotGeneralization();




More information about the umbrello-devel mailing list