From 90a91ed3e9ca1684655268dc52754ca569febc36 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Thu, 8 Mar 2012 14:56:00 +0100 Subject: use string literal OUString overloads --- sw/source/filter/rtf/rtffly.cxx | 4 ++-- sw/source/filter/ww8/ww8par.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source') diff --git a/sw/source/filter/rtf/rtffly.cxx b/sw/source/filter/rtf/rtffly.cxx index b4c6573f5cea..026fc4a496ad 100644 --- a/sw/source/filter/rtf/rtffly.cxx +++ b/sw/source/filter/rtf/rtffly.cxx @@ -1284,12 +1284,12 @@ void SwRTFParser::InsPicture( const String& rGrfNm, const Graphic* pGrf, PictPropertyNameValuePairs::const_iterator aEnd = pPicType->aPropertyPairs.end(); while( aIt != aEnd) { - if( aIt->first.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM( "wzDescription") )) + if( aIt->first == "wzDescription" ) { SwXFrame::GetOrCreateSdrObject( pFlyFmt ); pDoc->SetFlyFrmDescription( *(pFlyFmt), aIt->second ); } - else if( aIt->first.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM( "wzName") )) + else if( aIt->first == "wzName" ) { SwXFrame::GetOrCreateSdrObject( pFlyFmt ); pDoc->SetFlyFrmTitle( *(pFlyFmt), aIt->second ); diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 99db4daeb858..254b4c962e64 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -4323,7 +4323,7 @@ bool SwWW8ImplReader::ReadGlobalTemplateSettings( const rtl::OUString& sCreatedF aURL = sGlobalTemplates[ i ]; else osl::FileBase::getFileURLFromSystemPath( sGlobalTemplates[ i ], aURL ); - if ( !aURL.endsWithIgnoreAsciiCaseAsciiL( ".dot", 4 ) || ( !sCreatedFrom.isEmpty() && sCreatedFrom.equals( aURL ) ) ) + if ( !aURL.endsWithIgnoreAsciiCase( ".dot" ) || ( !sCreatedFrom.isEmpty() && sCreatedFrom.equals( aURL ) ) ) continue; // don't try and read the same document as ourselves SotStorageRef rRoot = new SotStorage( aURL, STREAM_STD_READWRITE, STORAGE_TRANSACTED ); -- cgit