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:
@@ -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
|
||||
|
Reference in New Issue
Block a user