diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-26 08:30:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-01 10:08:42 +0200 |
commit | ea2c80bdcd862f91dd7429184aea29d9a77f9774 (patch) | |
tree | be34aa41cac74b86ae6bcdd4e9b6b3563121a9b3 /cui/source/dialogs/iconcdlg.cxx | |
parent | 183f260e7ed86c30d99313cdb3267c18abb65bd3 (diff) |
convert CUI module from String to OUString
Change-Id: I79bdab414d448a0d619b80857d7b31633c116f81
Diffstat (limited to 'cui/source/dialogs/iconcdlg.cxx')
-rw-r--r-- | cui/source/dialogs/iconcdlg.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 1f853ff62483..18ffc57cc35b 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -38,18 +38,18 @@ using ::std::vector; static const sal_Char* pViewOptDataName = "dialog data"; #define VIEWOPT_DATANAME OUString::createFromAscii( pViewOptDataName ) -static inline void SetViewOptUserItem( SvtViewOptions& rOpt, const String& rData ) +static inline void SetViewOptUserItem( SvtViewOptions& rOpt, const OUString& rData ) { - rOpt.SetUserItem( VIEWOPT_DATANAME, ::com::sun::star::uno::makeAny( OUString( rData ) ) ); + rOpt.SetUserItem( VIEWOPT_DATANAME, css::uno::makeAny( rData ) ); } -static inline String GetViewOptUserItem( const SvtViewOptions& rOpt ) +static inline OUString GetViewOptUserItem( const SvtViewOptions& rOpt ) { ::com::sun::star::uno::Any aAny( rOpt.GetUserItem( VIEWOPT_DATANAME ) ); OUString aUserData; aAny >>= aUserData; - return String( aUserData ); + return aUserData; } @@ -264,8 +264,8 @@ IconChoiceDialog ::~IconChoiceDialog () if ( pData->pPage ) { pData->pPage->FillUserData(); - String aPageData(pData->pPage->GetUserData()); - if ( aPageData.Len() ) + OUString aPageData(pData->pPage->GetUserData()); + if ( !aPageData.isEmpty() ) { SvtViewOptions aTabPageOpt( E_TABPAGE, OUString::number(pData->nId) ); @@ -302,7 +302,7 @@ IconChoiceDialog ::~IconChoiceDialog () SvxIconChoiceCtrlEntry* IconChoiceDialog::AddTabPage( sal_uInt16 nId, - const String& rIconText, + const OUString& rIconText, const Image& rChoiceIcon, CreatePage pCreateFunc /* != 0 */, GetPageRanges pRangesFunc /* darf 0 sein */, |