]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
Fixed typo.
[wxWidgets.git] / include / wx / list.h
index e6fd24d74b1529b405af474e275f97b339fd1e78..8f0c86f27618340bf300f52203f2e864a730fa6c 100644 (file)
@@ -821,15 +821,15 @@ private:
             ptrop                                                           \
             itor& operator++()                                              \
             {                                                               \
-                if (m_node)                                                 \
-                    m_node = m_node->GetNext();                             \
+                wxASSERT_MSG( m_node, wxT("uninitialized iterator") );      \
+                m_node = m_node->GetNext();                                 \
                 return *this;                                               \
             }                                                               \
             const itor operator++(int)                                      \
             {                                                               \
                 itor tmp = *this;                                           \
-                if (m_node)                                                 \
-                    m_node = m_node->GetNext();                             \
+                wxASSERT_MSG( m_node, wxT("uninitialized iterator") );      \
+                m_node = m_node->GetNext();                                 \
                 return tmp;                                                 \
             }                                                               \
             itor& operator--()                                              \
@@ -874,15 +874,15 @@ private:
             ptrop                                                           \
             itor& operator++()                                              \
             {                                                               \
-                if (m_node)                                                 \
-                    m_node = m_node->GetNext();                             \
+                wxASSERT_MSG( m_node, wxT("uninitialized iterator") );      \
+                m_node = m_node->GetNext();                                 \
                 return *this;                                               \
             }                                                               \
             const itor operator++(int)                                      \
             {                                                               \
                 itor tmp = *this;                                           \
-                if (m_node)                                                 \
-                    m_node = m_node->GetNext();                             \
+                wxASSERT_MSG( m_node, wxT("uninitialized iterator") );      \
+                m_node = m_node->GetNext();                                 \
                 return tmp;                                                 \
             }                                                               \
             itor& operator--()                                              \