summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-05 09:52:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-05 09:52:43 +0200
commit9a1f09b93bc83276516fcfe3a7db4a23ca8c8c2c (patch)
tree79c121901d4c0212cdb3f840e80b3e3b87da0004 /comphelper
parente676f98f34b6bdf1e54172581f29683f694e5353 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: Ifd016962dda31b312070745e7646879186d074e9
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;