diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-08 14:56:00 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-12 13:35:59 +0100 |
commit | 90a91ed3e9ca1684655268dc52754ca569febc36 (patch) | |
tree | c60be2656d9f136fb2c5eb70d8d9f902e21e5312 /sw/source | |
parent | 814cb6a3d63707198e23131facb7ce9f23c389b6 (diff) |
use string literal OUString overloads
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/rtf/rtffly.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
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 ); |