diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 11:34:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-21 13:29:29 +0200 |
commit | 6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch) | |
tree | ff375d3a9e989c731a42a1255b8e1cede2bb6bbd /cppcanvas | |
parent | 89633c6da1cde46983926dcc2e0f8e08de0e9378 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this:
if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aStr == "rem")
which compiles down to the same code.
Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index a8145bb9d2f6..9b60ea57a72e 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -1653,7 +1653,7 @@ namespace cppcanvas // XPATHSTROKE_SEQ_BEGIN comment // Handle drawing layer fills - else if( pAct->GetComment().equalsL(RTL_CONSTASCII_STRINGPARAM("XPATHFILL_SEQ_BEGIN")) ) + else if( pAct->GetComment() == "XPATHFILL_SEQ_BEGIN" ) { const sal_uInt8* pData = pAct->GetData(); if ( pData ) @@ -1769,7 +1769,7 @@ namespace cppcanvas } } // Handle drawing layer fills - else if( pAct->GetComment().equalsL(RTL_CONSTASCII_STRINGPARAM("EMF_PLUS")) ) { + else if( pAct->GetComment() == "EMF_PLUS" ) { static int count = -1, limit = 0x7fffffff; if (count == -1) { count = 0; @@ -1782,7 +1782,7 @@ namespace cppcanvas if (count < limit) processEMFPlus( pAct, rFactoryParms, rStates.getState(), rCanvas ); count ++; - } else if( pAct->GetComment().equalsL(RTL_CONSTASCII_STRINGPARAM("EMF_PLUS_HEADER_INFO")) ) { + } else if( pAct->GetComment() == "EMF_PLUS_HEADER_INFO" ) { SAL_INFO ("cppcanvas.emf", "EMF+ passed to canvas mtf renderer - header info, size: " << pAct->GetDataSize ()); SvMemoryStream rMF ((void*) pAct->GetData (), pAct->GetDataSize (), STREAM_READ); |