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 /comphelper/source | |
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 'comphelper/source')
-rw-r--r-- | comphelper/source/misc/syntaxhighlight.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx index c9bac083beb6..580f2842c8b3 100644 --- a/comphelper/source/misc/syntaxhighlight.cxx +++ b/comphelper/source/misc/syntaxhighlight.cxx @@ -368,7 +368,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /* { reType = TT_KEYWORDS; - if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) + if( aByteStr == "rem" ) { // Remove all characters until end of line or EOF sal_Unicode cPeek = *pos; |