diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 14:05:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-22 08:07:18 +0200 |
commit | 2241fd5302c1ec83c8cbaa2422a477628a569aab (patch) | |
tree | a1e29ab709aaa0cfda59382db1ef84d25a238908 /cppcanvas | |
parent | 6266efb0fe8cd52ee908d5d36f1de322735fe8bc (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::equalsIgnoreAsciiL
Convert code like:
aStr.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN"))
to:
aStr.equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN")
which compiles down to the same code.
Change-Id: Ia69289d853d292b2f27b68863cb6f6ecdbf1a71e
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 9b60ea57a72e..d44567cc5c57 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -1616,7 +1616,7 @@ namespace cppcanvas MetaCommentAction* pAct = static_cast<MetaCommentAction*>(pCurrAct); // Handle gradients - if (pAct->GetComment().equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN"))) + if (pAct->GetComment().equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN")) { MetaGradientExAction* pGradAction = NULL; bool bDone( false ); @@ -1632,7 +1632,7 @@ namespace cppcanvas // skip broken-down rendering, output gradient when sequence is ended case META_COMMENT_ACTION: - if( static_cast<MetaCommentAction*>(pCurrAct)->GetComment().equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_END")) ) + if( static_cast<MetaCommentAction*>(pCurrAct)->GetComment().equalsIgnoreAsciiCase("XGRAD_SEQ_END") ) { bDone = true; |