diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-12-15 14:57:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-12-17 09:35:24 +0000 |
commit | fd84daf696a368c2c7561b5253b32a63ecdeca4a (patch) | |
tree | 49a32e1364d7adf7413aa18d5e0245b9378c8d9a /vcl | |
parent | a1175f3d6ba3e16f81bb12b55c590fc605695b5f (diff) |
UniString::ToUpperAscii -> OUString::toAsciiUpperCase
Change-Id: I70f2238021c79a34b97a6bdbcc374d8b1ffb2a31
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field2.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index 725f697411b4..cdc358a598bb 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -2383,12 +2383,10 @@ static sal_Bool ImplTimeGetValue( const XubString& rStr, Time& rTime, return sal_False; aStr.ToUpperAscii(); - XubString aAM( rLocaleDataWrapper.getTimeAM() ); - XubString aPM( rLocaleDataWrapper.getTimePM() ); - aAM.ToUpperAscii(); - aPM.ToUpperAscii(); - rtl::OUString aAM2("AM"); // aAM is localized - rtl::OUString aPM2("PM"); // aPM is localized + OUString aAM(rLocaleDataWrapper.getTimeAM().toAsciiUpperCase()); + OUString aPM(rLocaleDataWrapper.getTimePM().toAsciiUpperCase()); + OUString aAM2("AM"); // aAM is localized + OUString aPM2("PM"); // aPM is localized if ( (nHour < 12) && ( ( aStr.Search( aPM ) != STRING_NOTFOUND ) || ( aStr.Search( aPM2 ) != STRING_NOTFOUND ) ) ) nHour += 12; |