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