summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-15 14:57:53 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-17 09:35:24 +0000
commitfd84daf696a368c2c7561b5253b32a63ecdeca4a (patch)
tree49a32e1364d7adf7413aa18d5e0245b9378c8d9a /svtools
parenta1175f3d6ba3e16f81bb12b55c590fc605695b5f (diff)
UniString::ToUpperAscii -> OUString::toAsciiUpperCase
Change-Id: I70f2238021c79a34b97a6bdbcc374d8b1ffb2a31
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/imagemgr.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 3952c0248c9e..f8bc484539c9 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -529,8 +529,8 @@ String SvFileInformationManager::GetDescription_Impl( const INetURLObject& rObje
{
RTL_LOGFILE_CONTEXT_AUTHOR( aTimeLog, "svtools", "hb93813", "SvFileInformationManager::GetDescription_Impl()" );
- String sDescription;
- String sExtension( rObject.getExtension() ), sURL( rObject.GetMainURL( INetURLObject::NO_DECODE ) );
+ OUString sExtension(rObject.getExtension());
+ String sDescription, sURL( rObject.GetMainURL( INetURLObject::NO_DECODE ) );
sal_uInt16 nResId = 0;
sal_Bool bShowExt = sal_False, bDetected = sal_False, bOnlyFile = sal_False;
sal_Bool bFolder = bDetectFolder ? CONTENT_HELPER::IsFolder( sURL ) : sal_False;
@@ -552,10 +552,10 @@ String SvFileInformationManager::GetDescription_Impl( const INetURLObject& rObje
if ( !bDetected )
{
// search a description by extension
- sal_Bool bExt = ( sExtension.Len() > 0 );
+ bool bExt = !sExtension.isEmpty();
if ( bExt )
{
- sExtension.ToLowerAscii();
+ sExtension = sExtension.toAsciiLowerCase();
nResId = GetDescriptionId_Impl( sExtension, bShowExt );
}
if ( !nResId )
@@ -574,7 +574,7 @@ String SvFileInformationManager::GetDescription_Impl( const INetURLObject& rObje
if ( bOnlyFile )
{
bShowExt = sal_False;
- sExtension.ToUpperAscii();
+ sExtension = sExtension.toAsciiUpperCase();
sDescription = sExtension;
sDescription += '-';
}