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:
Artur Wieczorek
2015-05-16 17:16:30 +02:00
parent 08f9e27351
commit b6ab81584f
4 changed files with 29 additions and 11 deletions

View File

@@ -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);
}
}