Fix gcc warnings about comparing iterators with NULL in STL build.

Iterators are not pointers and shouldn't be compared to NULL.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-10-03 22:23:51 +00:00
parent b7ff06ad15
commit 864299f799

View File

@ -493,7 +493,7 @@ void wxRichTextImageDialog::OnRichtextimagedialogParaUpClick( wxCommandEvent& WX
// Before editing this code, remove the block markers.
wxRichTextRange range = m_image->GetRange();
wxRichTextObjectList::compatibility_iterator iter = m_buffer->GetChildren().GetFirst();
if (iter == NULL)
if (!iter)
return;
while (iter)
@ -504,7 +504,7 @@ void wxRichTextImageDialog::OnRichtextimagedialogParaUpClick( wxCommandEvent& WX
}
iter = iter->GetPrevious();
if (iter == NULL)
if (!iter)
return;
wxRichTextObject *obj = iter->GetData();
@ -527,7 +527,7 @@ void wxRichTextImageDialog::OnRichtextimagedialogDownClick( wxCommandEvent& WXUN
// Before editing this code, remove the block markers.
wxRichTextRange range = m_image->GetRange();
wxRichTextObjectList::compatibility_iterator iter = m_buffer->GetChildren().GetFirst();
if (iter == NULL)
if (!iter)
return;
while (iter)
@ -538,7 +538,7 @@ void wxRichTextImageDialog::OnRichtextimagedialogDownClick( wxCommandEvent& WXUN
}
iter = iter->GetNext();
if (iter == NULL)
if (!iter)
return;
wxRichTextObject *obj = iter->GetData();