diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-17 10:06:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-20 12:57:31 +0000 |
commit | 8550b42a1d304054ee878c9c6debae0a10b0bf39 (patch) | |
tree | 849bc47fe7f09ce3191af98919df1adb7f5838be /sfx2 | |
parent | 0a14f36501e2e0ce8373464dc1655fdb1e9550b6 (diff) |
remove extra string casts
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/docvor.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/docvor.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/inc/docvor.hxx b/sfx2/inc/docvor.hxx index f518c296149f..a0f02b3c473a 100644 --- a/sfx2/inc/docvor.hxx +++ b/sfx2/inc/docvor.hxx @@ -66,7 +66,7 @@ friend class SfxOrganizeDlg_Impl; protected: virtual sal_Bool EditingEntry( SvLBoxEntry* pEntry, Selection & ); - virtual sal_Bool EditedEntry( SvLBoxEntry* pEntry, const String& rNewText ); + virtual sal_Bool EditedEntry( SvLBoxEntry* pEntry, const rtl::OUString& rNewText ); virtual sal_Bool NotifyMoving(SvLBoxEntry *pSource, SvLBoxEntry* pTarget, SvLBoxEntry *&pNewParent, sal_uIntPtr &); diff --git a/sfx2/source/doc/docvor.cxx b/sfx2/source/doc/docvor.cxx index 91ea159fb286..70fbf7c4e488 100644 --- a/sfx2/source/doc/docvor.cxx +++ b/sfx2/source/doc/docvor.cxx @@ -884,7 +884,7 @@ sal_Bool SfxOrganizeListBox_Impl::EditingEntry( SvLBoxEntry* pEntry, Selection& (SV-Handler) [Cross-references] - <SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const String& rText)> + <SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const rtl::OUString& rText)> */ { @@ -899,7 +899,7 @@ sal_Bool SfxOrganizeListBox_Impl::EditingEntry( SvLBoxEntry* pEntry, Selection& //------------------------------------------------------------------------- -sal_Bool SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const String& rText) +sal_Bool SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const rtl::OUString& rText) /* [Description] @@ -921,7 +921,7 @@ sal_Bool SfxOrganizeListBox_Impl::EditedEntry(SvLBoxEntry* pEntry, const String& delete pDlg->pSuspend; pDlg->pSuspend = NULL; SvLBoxEntry* pParent = GetParent(pEntry); - if( !rText.Len() ) + if( rText.isEmpty() ) { ErrorBox aBox( this, SfxResId( MSG_ERROR_EMPTY_NAME ) ); aBox.GrabFocus(); |