added assert to verify that operands are initialized in compatibility_iterator::operator==()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e547f7a7b8
commit
b4affacc10
@ -166,7 +166,11 @@ private:
|
||||
const compatibility_iterator* operator->() const { return this; } \
|
||||
\
|
||||
bool operator==(const compatibility_iterator& i) const \
|
||||
{ return (m_list == i.m_list) && (m_iter == i.m_iter); } \
|
||||
{ \
|
||||
wxASSERT_MSG( m_list && i.m_list, \
|
||||
_T("comparing invalid iterators is illegal") ); \
|
||||
return (m_list == i.m_list) && (m_iter == i.m_iter); \
|
||||
} \
|
||||
bool operator!=(const compatibility_iterator& i) const \
|
||||
{ return !( operator==( i ) ); } \
|
||||
operator bool() const \
|
||||
|
Loading…
Reference in New Issue
Block a user