From 04ba48e6855ed4501bcf94bc322cd1025d7cdbc9 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 8 Jul 2016 19:47:24 +0200 Subject: [PATCH] Use enum instead of macro to represent flag used in wxPGPropertyGridInterface and wxPGProperty methods. Use enums to represent all flags. --- include/wx/propgrid/propgriddefs.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/wx/propgrid/propgriddefs.h b/include/wx/propgrid/propgriddefs.h index cd68322810..71aca25211 100644 --- a/include/wx/propgrid/propgriddefs.h +++ b/include/wx/propgrid/propgriddefs.h @@ -319,6 +319,8 @@ WX_DEFINE_TYPEARRAY_WITH_DECL_PTR(wxObject*, wxArrayPGObject, enum wxPG_GETPROPERTYVALUES_FLAGS { +/** Flags for wxPropertyGrid::SetPropertyAttribute() etc */ +wxPG_DONT_RECURSE = 0x00000000, /** Flags for wxPropertyGridInterface::GetPropertyValues */ wxPG_KEEP_STRUCTURE = 0x00000010, @@ -339,12 +341,8 @@ wxPG_FORCE = 0x00000100, Sorting done by wxPG_AUTO_SORT option uses this. */ wxPG_SORT_TOP_LEVEL_ONLY = 0x00000200 - }; -/** Flags for wxPropertyGrid::SetPropertyAttribute() etc */ -#define wxPG_DONT_RECURSE 0x00000000 - // ----------------------------------------------------------------------- // Misc. argument flags.