[Libreoffice-commits] .: sc/source

Joseph Powers jpowers at kemper.freedesktop.org
Sat Jan 1 10:59:56 PST 2011


 sc/source/ui/view/drawvie3.cxx |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

New commits:
commit ebd5f54c878d04161373fbe625d48c71023dd67c
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Sat Jan 1 10:58:15 2011 -0800

    Remove DECLARE_LIST( TargetList, String* )

diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx
index 97a7c0d..afb41ac 100644
--- a/sc/source/ui/view/drawvie3.cxx
+++ b/sc/source/ui/view/drawvie3.cxx
@@ -2,7 +2,7 @@
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -169,12 +169,8 @@ void ScDrawView::UpdateIMap( SdrObject* pObj )
         ScIMapDlgSet( aGraphic, pImageMap, &aTargetList, pObj );	// aus imapwrap
 
         // TargetListe kann von uns wieder geloescht werden
-        String* pEntry = aTargetList.First();
-        while( pEntry )
-        {
-            delete pEntry;
-            pEntry = aTargetList.Next();
-        }
+        for ( size_t i = 0, n = aTargetList.size(); i < n; ++i )
+            delete aTargetList[ i ];
     }
 }
 


More information about the Libreoffice-commits mailing list