From b624064659c37f995125e959c2b749f67c2c6b9d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 29 Sep 2018 17:01:17 +0200 Subject: [PATCH] Call Add(), not Set(), from wxPGChoices ctors There is no need to call Free() on a newly constructed object and Set() is just Free() followed by Add(). No real changes. --- include/wx/propgrid/property.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index a37a953fc5..937fabcd06 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -724,7 +724,7 @@ public: wxPGChoices( const wxChar* const* labels, const long* values = NULL ) { Init(); - Set(labels,values); + Add(labels,values); } // Constructor. @@ -734,7 +734,7 @@ public: const wxArrayInt& values = wxArrayInt() ) { Init(); - Set(labels,values); + Add(labels,values); } // Simple interface constructor.