aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/SparseState.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-02-20 08:43:25 +1100
committernyamatongwe <unknown>2011-02-20 08:43:25 +1100
commit558721bfa2b9ce3f00dace6cdf775f295671871a (patch)
tree3998f6d0171ea4fab57f6b211808aedd31a3dad2 /lexlib/SparseState.h
parent8c5599b68c50e04bc5d07e6776e2c77154346eec (diff)
downloadscintilla-mirror-558721bfa2b9ce3f00dace6cdf775f295671871a.tar.gz
Avoid some cppcheck warnings.
Diffstat (limited to 'lexlib/SparseState.h')
-rw-r--r--lexlib/SparseState.h4
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;