[Libreoffice-commits] .: svx/inc svx/source

Lubos Lunak llunak at kemper.freedesktop.org
Tue Mar 1 08:39:14 PST 2011


 svx/inc/gallery.hxx             |    2 +-
 svx/source/gallery2/galexpl.cxx |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit b1653e6ae641d037d27aad645b6f338bbd447c64
Author: npcdoom <venccsralph at gmail.com>
Date:   Sat Feb 26 15:55:29 2011 -0430

    Change deprecated List for std::vector<String> in FillThemeList.
    
    Signed-off-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/svx/inc/gallery.hxx b/svx/inc/gallery.hxx
index 27fd7ee..726db23 100644
--- a/svx/inc/gallery.hxx
+++ b/svx/inc/gallery.hxx
@@ -228,7 +228,7 @@ public:
     BOOL						GetVCDrawModel( FmFormModel& rModel ) const;
     BOOL						IsLinkage() const;
 
-    static BOOL					FillThemeList( List& rThemeList );
+    static bool					FillThemeList( std::vector<String>& rThemeList );
 
                                 // FillObjList is filling rObjList with Strings of the internal Gallery Object URL
     static BOOL					FillObjList( const String& rThemeName, List& rObjList );
diff --git a/svx/source/gallery2/galexpl.cxx b/svx/source/gallery2/galexpl.cxx
index e2050d3..0770c71 100644
--- a/svx/source/gallery2/galexpl.cxx
+++ b/svx/source/gallery2/galexpl.cxx
@@ -109,7 +109,7 @@ BOOL GalleryExplorer::IsLinkage() const
 
 // ------------------------------------------------------------------------
 
-BOOL GalleryExplorer::FillThemeList( List& rThemeList )
+bool GalleryExplorer::FillThemeList( std::vector<String>& rThemeList )
 {
     Gallery* pGal = ImplGetGallery();
 
@@ -120,11 +120,11 @@ BOOL GalleryExplorer::FillThemeList( List& rThemeList )
             const GalleryThemeEntry* pEntry = pGal->GetThemeInfo( i );
 
             if( pEntry && !pEntry->IsReadOnly() && !pEntry->IsHidden() )
-                rThemeList.Insert( new String( pEntry->GetThemeName() ), LIST_APPEND );
+                rThemeList.push_back(pEntry->GetThemeName());
         }
     }
 
-    return( rThemeList.Count() > 0 );
+    return !rThemeList.empty();
 }
 
 // ------------------------------------------------------------------------


More information about the Libreoffice-commits mailing list