Deprecate wxPGProperty::GetFlags() getter method.
Instead of using pass-trough getter just to check the bits of internal field there are implemented dedicated HasFlag() and HasFlagsExact() methods to do so.
This commit is contained in:
@@ -494,12 +494,12 @@ void wxPropertyGridInterface::GetPropertiesWithFlag( wxArrayPGProperty* targetAr
|
||||
|
||||
if ( !inverse )
|
||||
{
|
||||
if ( (property->GetFlags() & flags) == flags )
|
||||
if ( property->HasFlagsExact(flags) )
|
||||
targetArr->push_back((wxPGProperty*)property);
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( (property->GetFlags() & flags) != flags )
|
||||
if ( !property->HasFlagsExact(flags) )
|
||||
targetArr->push_back((wxPGProperty*)property);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user