summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-06 23:00:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-09 13:28:37 +0000
commit45b19123a63f23fe37b11b063d7567bf79ef09aa (patch)
treebefd8c637ac6fbdf94c05bb80c500fb781dd2bb4 /sfx2
parentbcd9122715c7b708a65bee05a90dba3a38624ecb (diff)
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
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/linkmgr2.cxx5
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx2
2 files changed, 3 insertions, 4 deletions
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 );
}
//----------------------------------------------------------------