Kaydet (Commit) 513179b9 authored tarafından Michael Stahl's avatar Michael Stahl

coverity#1256663: sw: fix Ring::equals()

Change-Id: I199ad135fcb217866e8daa0797f4013f8acf4f6a
üst 01225e0b
......@@ -188,7 +188,7 @@ namespace sw
void increment()
{ m_pCurrent = m_pCurrent ? m_pCurrent->GetNext() : m_pStart->GetNext(); }
bool equal(RingIterator const& other) const
{ return m_pCurrent == other.m_pCurrent && m_pStart == m_pStart; }
{ return m_pCurrent == other.m_pCurrent && m_pStart == other.m_pStart; }
T& dereference() const
{ return m_pCurrent ? *m_pCurrent : * m_pStart; }
/**
......
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