From 9a1f09b93bc83276516fcfe3a7db4a23ca8c8c2c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 5 Oct 2015 09:52:43 +0200 Subject: [PATCH] clang-analyzer-deadcode.DeadStores Change-Id: Ifd016962dda31b312070745e7646879186d074e9 --- comphelper/source/misc/syntaxhighlight.cxx | 3 +-- 1 file changed, 1 insertion(+), 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;