diff options
author | nyamatongwe <devnull@localhost> | 2011-02-20 08:43:25 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-02-20 08:43:25 +1100 |
commit | c599749164ede08d1e68dbb857135eb75abb1f25 (patch) | |
tree | 20038032b7afcf721b95efc8d01619b12206acd8 /lexlib/SparseState.h | |
parent | 63d64405ee7c55959b393cfc5afa5eb13f65d95a (diff) | |
download | scintilla-mirror-c599749164ede08d1e68dbb857135eb75abb1f25.tar.gz |
Avoid some cppcheck warnings.
Diffstat (limited to 'lexlib/SparseState.h')
-rw-r--r-- | lexlib/SparseState.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |