From 45b19123a63f23fe37b11b063d7567bf79ef09aa Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 6 Jan 2012 23:00:40 +0000 Subject: simplify CharClass multiple variants of toUpper (etc) some that take a non-const OUString or String and modify it some that take a const OUString or String and return a new one some that take part of a const OUString or String and return a new one --- sfx2/source/appl/linkmgr2.cxx | 5 ++--- sfx2/source/bastyp/fltfnc.cxx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 3ee11cc70170..2a2fb434f7c7 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -590,8 +590,7 @@ sal_Bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink ) nUpdateMode = pItem->GetValue(); } - String sNmURL( lcl_DDE_RelToAbs( sTopic, sReferer ) ); - aCC.toLower( sNmURL ); + String sNmURL(aCC.lowercase(lcl_DDE_RelToAbs(sTopic, sReferer))); if ( !pShell ) { @@ -609,7 +608,7 @@ sal_Bool SvxInternalLink::Connect( sfx2::SvBaseLink* pLink ) } - aCC.toLower( sTmp ); + sTmp = aCC.lowercase( sTmp ); if( sTmp == sNmURL ) // we want these { pFndShell = pShell; diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index 580603c7d284..51d3fecdc630 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -140,7 +140,7 @@ static void CreateFilterArr() //---------------------------------------------------------------- inline String ToUpper_Impl( const String &rStr ) { - return SvtSysLocale().GetCharClass().upper( rStr ); + return SvtSysLocale().GetCharClass().uppercase( rStr ); } //---------------------------------------------------------------- -- cgit