diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/mediatypedetectionhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |