Use getter/setter methods to get access to wxPGProperty::m_flags.

Use dedicated wxPGProperty::HasFlags, wxPGProperty::SetFlag methods to check or modify wxPGProperty::m_flags member variable.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2015-01-31 21:42:17 +00:00
parent 3c0b17d4b5
commit 9698181b45
4 changed files with 22 additions and 18 deletions

View File

@@ -259,7 +259,7 @@ bool wxPropertyGridInterface::EnableProperty( wxPGPropArg id, bool enable )
if ( enable )
{
if ( !(p->m_flags & wxPG_PROP_DISABLED) )
if ( !p->HasFlag(wxPG_PROP_DISABLED) )
return false;
// If active, Set active Editor.
@@ -268,7 +268,7 @@ bool wxPropertyGridInterface::EnableProperty( wxPGPropArg id, bool enable )
}
else
{
if ( p->m_flags & wxPG_PROP_DISABLED )
if ( p->HasFlag(wxPG_PROP_DISABLED) )
return false;
// If active, Disable as active Editor.