diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 13:18:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 13:56:08 +0200 |
commit | acebbee971136e6ee0a7bc75bd57d937d6e1c295 (patch) | |
tree | f56fec189343e1d9297918037b55263733243d7b /cppcanvas | |
parent | d894fee80e40519cb579987b95cb3d19345dfa71 (diff) |
remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls
Convert code like:
if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aByteStr.startsWith("rem"))
Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
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..1b59ff2f7806 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().startsWith("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().startsWith("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().startsWith("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); |