From 8a539e49c4fba49bbd810a90747e1993e69a9942 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 25 Mar 2012 21:15:20 +0100 Subject: ditch some UniStrings and intermediate temporaries --- framework/source/services/mediatypedetectionhelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/source/services/mediatypedetectionhelper.cxx b/framework/source/services/mediatypedetectionhelper.cxx index 3848cf0b5465..ef9e3a219bca 100644 --- a/framework/source/services/mediatypedetectionhelper.cxx +++ b/framework/source/services/mediatypedetectionhelper.cxx @@ -95,8 +95,8 @@ sal_Bool SAL_CALL MediaTypeDetectionHelper::mapStrings( OUString& rUrl = rSeq[i]; INetContentType eType = INetContentTypes::GetContentTypeFromURL( rUrl ); - UniString aType( INetContentTypes::GetContentType( eType ) ); - if( aType.Len() ) + rtl::OUString aType( INetContentTypes::GetContentType( eType ) ); + if (!aType.isEmpty()) { rUrl = aType; bModified = sal_True; -- cgit