From 0ef325bfdc6703bbb1d170e4a8e74061a6a158df Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 26 Jun 2015 18:40:52 +0200 Subject: [PATCH] Use HasFlag() instead of GetWindowStyleFlag() to check flags in propgrid sample. Dedicated method to check flags is more readable. --- samples/propgrid/tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/propgrid/tests.cpp b/samples/propgrid/tests.cpp index 3a966235ad..def59eff0b 100644 --- a/samples/propgrid/tests.cpp +++ b/samples/propgrid/tests.cpp @@ -959,7 +959,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive ) } } - if ( !(pgman->GetWindowStyleFlag()&wxPG_HIDE_CATEGORIES) ) + if ( !pgman->HasFlag(wxPG_HIDE_CATEGORIES) ) { RT_START_TEST(Collapse_and_GetFirstCategory_and_GetNextCategory) @@ -1000,7 +1000,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive ) } } - //if ( !(pgman->GetWindowStyleFlag()&wxPG_HIDE_CATEGORIES) ) + //if ( !pgman->HasFlag(wxPG_HIDE_CATEGORIES) ) { RT_START_TEST(Expand_and_GetFirstCategory_and_GetNextCategory) @@ -1045,7 +1045,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive ) pgman = m_pPropGridManager; } - //if ( !(pgman->GetWindowStyleFlag()&wxPG_HIDE_CATEGORIES) ) + //if ( !pgman->HasFlag(wxPG_HIDE_CATEGORIES) ) { RT_START_TEST(RandomCollapse)