Kaydet (Commit) f599ff99 authored tarafından Eike Rathke's avatar Eike Rathke

Use iterator pre-increment/decrement

Change-Id: I079850116648dc69b8c92fa23b30233f63d9b6e7
üst 581b8455
...@@ -133,8 +133,8 @@ class ScColumnsRange final ...@@ -133,8 +133,8 @@ class ScColumnsRange final
explicit Iterator(const std::vector<ScColumn*>::const_iterator& colIter) : maColIter(colIter) {} explicit Iterator(const std::vector<ScColumn*>::const_iterator& colIter) : maColIter(colIter) {}
Iterator& operator++() { maColIter++; return *this;} Iterator& operator++() { ++maColIter; return *this;}
Iterator& operator--() { maColIter--; return *this;} Iterator& operator--() { --maColIter; return *this;}
bool operator==(const Iterator & rOther) const {return maColIter == rOther.maColIter;} bool operator==(const Iterator & rOther) const {return maColIter == rOther.maColIter;}
bool operator!=(const Iterator & rOther) const {return !(*this == rOther);} bool operator!=(const Iterator & rOther) const {return !(*this == rOther);}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment