diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-06 23:00:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-09 13:28:37 +0000 |
commit | 45b19123a63f23fe37b11b063d7567bf79ef09aa (patch) | |
tree | befd8c637ac6fbdf94c05bb80c500fb781dd2bb4 /sot | |
parent | String sNm unused (diff) | |
download | core-45b19123a63f23fe37b11b063d7567bf79ef09aa.tar.gz core-45b19123a63f23fe37b11b063d7567bf79ef09aa.zip |
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 'sot')
-rw-r--r-- | sot/source/sdstor/stgelem.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx index bb163e6f42de..ff73a590f128 100644 --- a/sot/source/sdstor/stgelem.cxx +++ b/sot/source/sdstor/stgelem.cxx @@ -247,10 +247,9 @@ static String ToUpperUnicode( const String & rStr ) static rtl::OUString aEN(RTL_CONSTASCII_USTRINGPARAM("en")); static rtl::OUString aUS(RTL_CONSTASCII_USTRINGPARAM("US")); static CharClass aCC( com::sun::star::lang::Locale( aEN, aUS, rtl::OUString() ) ); - return aCC.toUpper( rStr, 0, rStr.Len() ); + return aCC.uppercase( rStr ); } - sal_Bool StgEntry::SetName( const String& rName ) { // I don't know the locale, so en_US is hopefully fine |