switching to assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -821,15 +821,15 @@ private:
|
|||||||
ptrop \
|
ptrop \
|
||||||
itor& operator++() \
|
itor& operator++() \
|
||||||
{ \
|
{ \
|
||||||
if (m_node) \
|
wxASSERT_MSG( m_node, wxT("uninitialized iterator") ); \
|
||||||
m_node = m_node->GetNext(); \
|
m_node = m_node->GetNext(); \
|
||||||
return *this; \
|
return *this; \
|
||||||
} \
|
} \
|
||||||
const itor operator++(int) \
|
const itor operator++(int) \
|
||||||
{ \
|
{ \
|
||||||
itor tmp = *this; \
|
itor tmp = *this; \
|
||||||
if (m_node) \
|
wxASSERT_MSG( m_node, wxT("uninitialized iterator") ); \
|
||||||
m_node = m_node->GetNext(); \
|
m_node = m_node->GetNext(); \
|
||||||
return tmp; \
|
return tmp; \
|
||||||
} \
|
} \
|
||||||
itor& operator--() \
|
itor& operator--() \
|
||||||
@@ -874,15 +874,15 @@ private:
|
|||||||
ptrop \
|
ptrop \
|
||||||
itor& operator++() \
|
itor& operator++() \
|
||||||
{ \
|
{ \
|
||||||
if (m_node) \
|
wxASSERT_MSG( m_node, wxT("uninitialized iterator") ); \
|
||||||
m_node = m_node->GetNext(); \
|
m_node = m_node->GetNext(); \
|
||||||
return *this; \
|
return *this; \
|
||||||
} \
|
} \
|
||||||
const itor operator++(int) \
|
const itor operator++(int) \
|
||||||
{ \
|
{ \
|
||||||
itor tmp = *this; \
|
itor tmp = *this; \
|
||||||
if (m_node) \
|
wxASSERT_MSG( m_node, wxT("uninitialized iterator") ); \
|
||||||
m_node = m_node->GetNext(); \
|
m_node = m_node->GetNext(); \
|
||||||
return tmp; \
|
return tmp; \
|
||||||
} \
|
} \
|
||||||
itor& operator--() \
|
itor& operator--() \
|
||||||
|
Reference in New Issue
Block a user