Commit 32211d77 authored by Martin Heistermann's avatar Martin Heistermann

Fix operator-- in some of the new iterators

Found in compiler warning:

```
../Type-OpenVolumeMesh/libs/OpenVolumeMesh/src/OpenVolumeMesh/Core/Iterators.cc:1558:18: warning: equality comparison result unused [-Wunused-comparison]
        hf_iter_ == halffaces.end();
```
parent 418e5494
Pipeline #11164 passed with stage
in 4 minutes and 8 seconds
......@@ -1510,7 +1510,7 @@ CellHalfFaceIterImpl& CellHalfFaceIterImpl::operator--() {
const std::vector<HalfFaceHandle>& halffaces =
BaseIter::mesh()->cell(ref_handle_).halffaces();
if (hf_iter_ == halffaces.begin()) {
hf_iter_ == halffaces.end();
hf_iter_ = halffaces.end();
--lap_;
if (lap_ < 0)
BaseIter::valid(false);
......@@ -1555,7 +1555,7 @@ CellFaceIterImpl& CellFaceIterImpl::operator--() {
const std::vector<HalfFaceHandle>& halffaces =
BaseIter::mesh()->cell(ref_handle_).halffaces();
if (hf_iter_ == halffaces.begin()) {
hf_iter_ == halffaces.end();
hf_iter_ = halffaces.end();
--lap_;
if (lap_ < 0)
BaseIter::valid(false);
......
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