[Libreoffice-commits] .: cui/source

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


 cui/source/dialogs/cuiimapwnd.cxx |    8 ++++----
 cui/source/dialogs/hltpbase.cxx   |   12 ++++++------
 2 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 659475842406d948bb08a6af44a50b2af3e2b058
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Sat Jan 1 10:57:36 2011 -0800

    Remove DECLARE_LIST( TargetList, String* )

diff --git a/cui/source/dialogs/cuiimapwnd.cxx b/cui/source/dialogs/cuiimapwnd.cxx
index 5ce727d..560deff 100644
--- a/cui/source/dialogs/cuiimapwnd.cxx
+++ b/cui/source/dialogs/cuiimapwnd.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
@@ -32,7 +32,7 @@
 #include <tools/urlobj.hxx>
 #include <vcl/msgbox.hxx>
 #include <vcl/help.hxx>
-#include <sfx2/sfxsids.hrc>	
+#include <sfx2/sfxsids.hrc>
 #define _ANIMATION
 #include "macroass.hxx"
 #include <svtools/imaprect.hxx>
@@ -88,8 +88,8 @@ URLDlg::URLDlg( Window* pWindow, const String& rURL, const String& rAlternativeT
     maEdtDescription.SetText( rDescription );
     maEdtName.SetText( rName );
 
-    for( String* pStr = rTargetList.First(); pStr; pStr = rTargetList.Next() )
-        maCbbTargets.InsertEntry( *pStr );
+    for( size_t i = 0, n = rTargetList.size(); i < n; ++i )
+        maCbbTargets.InsertEntry( *rTargetList[ i ] );
 
     if( !rTarget.Len() )
         maCbbTargets.SetText( String::CreateFromAscii( "_self" ) );
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index 202da71..e52a8f0 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -67,17 +67,17 @@ SvxFramesComboBox::SvxFramesComboBox ( Window* pParent, const ResId& rResId,
     if ( pFrame )
     {
         pFrame->GetTargetList(*pList);
-        USHORT nCount = (USHORT)pList->Count();
-        if( nCount )
+        if( !pList->empty() )
         {
-            USHORT i;
+            size_t nCount = pList->size();
+            size_t i;
             for ( i = 0; i < nCount; i++ )
             {
-                InsertEntry(*pList->GetObject(i));
+                InsertEntry( *pList->at( i ) );
             }
-            for ( i = nCount; i; i-- )
+            for ( i = nCount; i; )
             {
-                delete pList->GetObject( i - 1 );
+                delete pList->at( --i );
             }
         }
         delete pList;


More information about the Libreoffice-commits mailing list