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

@@ -183,7 +183,7 @@ wxPG_ITERATE_DEFAULT = wxPG_ITERATE_NORMAL
// Macro to test if children of PWC should be iterated through
#define wxPG_ITERATOR_PARENTEXMASK_TEST(PWC, PARENTMASK) \
( \
!(PWC->GetFlags() & PARENTMASK) && \
!PWC->HasFlag(PARENTMASK) && \
PWC->GetChildCount() \
)
@@ -240,8 +240,8 @@ private:
wxPGProperty* m_baseParent;
// Masks are used to quickly exclude items
int m_itemExMask;
int m_parentExMask;
wxPGProperty::FlagType m_itemExMask;
wxPGProperty::FlagType m_parentExMask;
};