summaryrefslogtreecommitdiff
path: root/svtools
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 /svtools
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 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index e45b37d7ff11..a4bfa4d9a8ff 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -1517,11 +1517,10 @@ void FontStyleBox::Modify()
if ( GetEntryPos( aStr ) == COMBOBOX_ENTRY_NOTFOUND )
{
- aChrCls.toUpper( aStr );
+ aStr = aChrCls.uppercase(aStr);
for ( sal_uInt16 i = 0; i < nEntryCount; i++ )
{
- XubString aEntryText = GetEntry( i );
- aChrCls.toUpper( aEntryText );
+ XubString aEntryText = aChrCls.uppercase(GetEntry(i));
if ( aStr == aEntryText )
{