Skip to content
Snippets Groups Projects
Commit 9965f9e0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

code more compact

parent c9da647b
No related branches found
No related tags found
1 merge request!2042cleanup while preparing for replacement of SimulationAreaDetector
......@@ -82,8 +82,3 @@ bool SimulationAreaIterator::operator==(const SimulationAreaIterator& other) con
ASSERT(m_detector == other.m_detector);
return m_index == other.m_index;
}
bool SimulationAreaIterator::operator!=(const SimulationAreaIterator& right) const
{
return !(*this == right);
}
......@@ -36,10 +36,9 @@ public:
size_t detectorIndex() const;
bool operator==(const SimulationAreaIterator& other) const;
bool operator!=(const SimulationAreaIterator& right) const;
bool operator!=(const SimulationAreaIterator& other) const { return !operator==(other); }
//! prefix increment
SimulationAreaIterator& operator++();
SimulationAreaIterator& operator++(); //!< prefix increment
private:
explicit SimulationAreaIterator(const IDetector* detector, size_t start_at_index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment