[Uml-devel] kdesdk/umbrello/umbrello
    Oliver Kellogg 
    okellogg at users.sourceforge.net
       
    Sun Dec 21 15:53:00 UTC 2003
    
    
  
CVS commit by okellogg: 
doUpdates(): Remove oldCount.
  M +3 -4      associationwidget.cpp   1.76
--- kdesdk/umbrello/umbrello/associationwidget.cpp  #1.75:1.76
@@ -1115,6 +1115,6 @@ void AssociationWidget::doUpdates(int ot
         QRect rc(pWidget->getX(), pWidget->getY(),
                  pWidget->getWidth(), pWidget->getHeight());
-        Region region = findPointRegion( rc, otherX, otherY);
-        m_role[role].m_WidgetRegion = region;
+        Region& region = m_role[role].m_WidgetRegion;  // alias for brevity
+        region = findPointRegion( rc, otherX, otherY);
         // Move some regions to the standard ones.
         switch( region ) {
@@ -1138,7 +1138,6 @@ void AssociationWidget::doUpdates(int ot
         int totalCount = m_role[role].m_nTotalCount;
         if( oldRegion != region ) {
-                int oldCount = totalCount;
                 updateRegionLineCount( regionCount - 1, regionCount, region, role );
-                updateAssociations( oldCount - 1, oldRegion, role );
+                updateAssociations( totalCount - 1, oldRegion, role );
                 updateAssociations( regionCount, region, role );
         } else if( totalCount != regionCount ) {
    
    
More information about the umbrello-devel
mailing list