From c599749164ede08d1e68dbb857135eb75abb1f25 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 20 Feb 2011 08:43:25 +1100 Subject: Avoid some cppcheck warnings. --- lexlib/SparseState.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexlib') diff --git a/lexlib/SparseState.h b/lexlib/SparseState.h index bd74ecef2..94aa929ef 100644 --- a/lexlib/SparseState.h +++ b/lexlib/SparseState.h @@ -57,7 +57,7 @@ public: return states[states.size()-1].value; } else { if (low->position > position) { - low--; + --low; } return low->value; } @@ -93,7 +93,7 @@ public: } typename stateVector::const_iterator startOther = other.states.begin(); if (!states.empty() && states.back().value == startOther->value) - startOther++; + ++startOther; if (startOther != other.states.end()) { states.insert(states.end(), startOther, other.states.end()); changed = true; -- cgit v1.2.3