Fix harmless MSVC warning about converting pointer to bool.

Compare the pointer with NULL explicitly to avoid "forcing value to bool"
warning C4800 from MSVC in richtext code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-06-15 23:23:14 +00:00
parent 6114fa0350
commit 568fb7e9f6

View File

@@ -310,7 +310,7 @@ wxIcon wxRichTextStylePage::GetIconResource( const wxString& name )
void wxRichTextStylePage::OnNextStyleUpdate( wxUpdateUIEvent& event )
{
wxRichTextStyleDefinition* def = wxRichTextFormattingDialog::GetDialogStyleDefinition(this);
event.Enable(wxDynamicCast(def, wxRichTextParagraphStyleDefinition));
event.Enable(wxDynamicCast(def, wxRichTextParagraphStyleDefinition) != NULL);
}
#endif // wxUSE_RICHTEXT