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 /connectivity | |
parent | a1175f3d6ba3e16f81bb12b55c590fc605695b5f (diff) |
UniString::ToUpperAscii -> OUString::toAsciiUpperCase
Change-Id: I70f2238021c79a34b97a6bdbcc374d8b1ffb2a31
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/file/FDatabaseMetaData.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/connectivity/source/drivers/file/FDatabaseMetaData.cxx b/connectivity/source/drivers/file/FDatabaseMetaData.cxx index 703ee24bbca0..dfe7f640a0b9 100644 --- a/connectivity/source/drivers/file/FDatabaseMetaData.cxx +++ b/connectivity/source/drivers/file/FDatabaseMetaData.cxx @@ -105,16 +105,17 @@ namespace } // get two extensions which differ by case only - String sExtension1 = aContentURL.getExtension(); - String sExtension2( sExtension1 ); - sExtension2.ToLowerAscii(); - if ( sExtension2 == sExtension1 ) + OUString sExtension1(aContentURL.getExtension()); + OUString sExtension2(sExtension1.toAsciiLowerCase()); + if (sExtension2 == sExtension1) + { // the extension was already in lower case - sExtension2.ToUpperAscii(); + sExtension2 = sExtension2.toAsciiUpperCase(); + } // the complete URL for the second extension INetURLObject aURL2( aContentURL ); - if ( sExtension2.Len() ) + if (!sExtension2.isEmpty()) aURL2.SetExtension( sExtension2 ); if ( aURL2.GetMainURL(INetURLObject::NO_DECODE) == aContentURL.GetMainURL(INetURLObject::NO_DECODE) ) return -1; |