From 5fb9d8d2443e6073c3a2b23499c80e1146c4abdb Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 12 Oct 2018 22:14:52 +0200 Subject: [PATCH] Use dedicated function to change flag --- include/wx/propgrid/property.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 82b5c3bb83..d93595cf0e 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -1792,8 +1792,7 @@ public: // (i.e. cancel 'true' returned by StringToValue() or IntToValue()). void SetWasModified( bool set = true ) { - if ( set ) m_flags |= wxPG_PROP_WAS_MODIFIED; - else m_flags &= ~wxPG_PROP_WAS_MODIFIED; + ChangeFlag(wxPG_PROP_WAS_MODIFIED, set); } // Returns property's help or description text.