kdevelop/parts/debugger

Andras Mantia amantia at freemail.hu
Sat Jan 25 15:14:02 UTC 2003


CVS commit by amantia: 

Fix item 7 of bug #52788. Revert if you think it's not the way of doing it.

CCMAIL:kdevelop-devel at kdevelop.org


  M +8 -3      breakpointwidget.cpp   1.11


--- kdevelop/parts/debugger/breakpointwidget.cpp  #1.10:1.11
@@ -276,8 +276,13 @@ BreakpointItem* BreakpointWidget::findKe
 void BreakpointWidget::removeAllBreakpoints()
 {
-    for( QListViewItemIterator it( this ); it.current(); ++it ) {
-        BreakpointItem* item = (BreakpointItem*)it.current();
-        item->remove();
+    QListViewItem* item = this->firstChild();
+    QListViewItem *next;
+    while (item) {
+        next = item->itemBelow();
+        static_cast<BreakpointItem*>(item)->remove();
+        item = next;
+        
     }
+    
 
     if( childCount() > 0 )






More information about the KDevelop-devel mailing list