summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 710d8c06c284..e071a93f5ec9 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -375,8 +375,7 @@ bool SyntaxHighlighter::Tokenizer::getNextToken(const sal_Unicode*& pos, /*out*/
sal_Unicode cPeek = *pos;
while( cPeek != 0 && !testCharFlags( cPeek, CHAR_EOL ) )
{
- c = *pos++;
- cPeek = *pos;
+ cPeek = *++pos;
}
reType = TT_COMMENT;