diff options
Diffstat (limited to 'svx/source/gallery2/galexpl.cxx')
-rw-r--r-- | svx/source/gallery2/galexpl.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/svx/source/gallery2/galexpl.cxx b/svx/source/gallery2/galexpl.cxx index 45dccd6a1318..45b7b5ae796e 100644 --- a/svx/source/gallery2/galexpl.cxx +++ b/svx/source/gallery2/galexpl.cxx @@ -153,6 +153,23 @@ sal_Bool GalleryExplorer::FillObjList( const sal_uInt32 nThemeId, std::vector<St return FillObjList( pGal->GetThemeName( nThemeId ), rObjList ); } +bool GalleryExplorer::FillObjList( const sal_uInt32 nThemeId, std::vector<rtl::OUString> &rObjList ) +{ + std::vector<String> aObjList; + if (!FillObjList(nThemeId, aObjList)) + return false; + + // Convert UniString to rtl::OUString. + std::vector<rtl::OUString> aList; + aList.reserve(aObjList.size()); + std::vector<String>::const_iterator it = aObjList.begin(), itEnd = aObjList.end(); + for (; it != itEnd; ++it) + aList.push_back(*it); + + rObjList.swap(aList); + return true; +} + // ------------------------------------------------------------------------ sal_Bool GalleryExplorer::FillObjListTitle( const sal_uInt32 nThemeId, std::vector< rtl::OUString >& rList ) |