From acebbee971136e6ee0a7bc75bd57d937d6e1c295 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Nov 2013 13:18:33 +0200 Subject: 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 --- comphelper/source/misc/syntaxhighlight.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx index c9bac083beb6..ce326604c08e 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.startsWith("rem")) { // Remove all characters until end of line or EOF sal_Unicode cPeek = *pos; -- cgit