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

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdelibs/kdeprint
From:       Harri Porten <porten () kde ! org>
Date:       2004-02-10 22:48:35
Message-ID: 20040210224835.257989192 () office ! kde ! org
[Download RAW message or body]

CVS commit by porten: 

tiny rewrite to let aCC parse this code. whether the combination of comma
and parentheses in this place is valid or whether aCC is wrong is up
to somebody with the spec under his pillow.


  M +1 -1      kxmlcommand.cpp   1.17.2.1
  M +1 -1      treecombobox.cpp   1.1.6.1
  M +1 -1      lpr/editentrydialog.cpp   1.2.2.1
  M +2 -2      management/kmconfigfonts.cpp   1.6.2.1
  M +2 -2      management/kxmlcommanddlg.cpp   1.20.2.1


--- kdelibs/kdeprint/kxmlcommand.cpp  #1.17:1.17.2.1
@@ -683,5 +683,5 @@ int KXmlCommandManager::insertCommand(QS
 
         int     pos(0);
-        KXmlCommand     *f1 = command(filtername), *f2(0);
+        KXmlCommand     *f1 = command(filtername), *f2 = 0;
         if (f1 && f1->inputMimeTypes().count() > 0)
         {

--- kdelibs/kdeprint/treecombobox.cpp  #1.1:1.1.6.1
@@ -53,5 +53,5 @@ TreeListBoxItem::TreeListBoxItem(QListBo
                 // search last "child" of the parent item, to put the new one
                 // at the end
-                TreeListBoxItem *childItem = static_cast<TreeListBoxItem*>(parentItem), *prevItem(0);
+                TreeListBoxItem *childItem = static_cast<TreeListBoxItem*>(parentItem), *prevItem = 0;
                 while (childItem->next())
                 {

--- kdelibs/kdeprint/lpr/editentrydialog.cpp  #1.2:1.2.2.1
@@ -73,5 +73,5 @@ EditEntryDialog::EditEntryDialog(Printca
                 m_fields = entry->fields;
                 m_aliases->setText(entry->aliases.join("|"));
-                QListViewItem   *root = new QListViewItem(m_view, entry->name), *item(0);
+                QListViewItem   *root = new QListViewItem(m_view, entry->name), *item = 0;
                 root->setSelectable(false);
                 root->setOpen(true);

--- kdelibs/kdeprint/management/kmconfigfonts.cpp  #1.6:1.6.2.1
@@ -157,5 +157,5 @@ void KMConfigFonts::slotRemove()
 void KMConfigFonts::slotUp()
 {
-        QListViewItem   *citem = m_fontpath->selectedItem(), *nitem(0);
+        QListViewItem   *citem = m_fontpath->selectedItem(), *nitem = 0;
         if (!citem || !citem->itemAbove())
                 return;
@@ -167,5 +167,5 @@ void KMConfigFonts::slotUp()
 void KMConfigFonts::slotDown()
 {
-        QListViewItem   *citem = m_fontpath->selectedItem(), *nitem(0);
+        QListViewItem   *citem = m_fontpath->selectedItem(), *nitem = 0;
         if (!citem || !citem->itemBelow())
                 return;

--- kdelibs/kdeprint/management/kxmlcommanddlg.cpp  #1.20:1.20.2.1
@@ -705,5 +705,5 @@ void KXmlCommandAdvancedDlg::removeItem(
 void KXmlCommandAdvancedDlg::slotMoveUp()
 {
-        QListViewItem   *item = m_view->currentItem(), *prev(0);
+        QListViewItem   *item = m_view->currentItem(), *prev = 0;
         if (item && (prev=findPrev(item)))
         {
@@ -724,5 +724,5 @@ void KXmlCommandAdvancedDlg::slotMoveUp(
 void KXmlCommandAdvancedDlg::slotMoveDown()
 {
-        QListViewItem   *item = m_view->currentItem(), *next(0);
+        QListViewItem   *item = m_view->currentItem(), *next = 0;
         if (item && (next=findNext(item)))
         {


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

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