From a6be0eef4a0139c704e0a4d6dc90e44296886770 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 12 Apr 2023 18:49:02 +0100 Subject: [PATCH] Add const to a PGPROPERTY constructor to match upstream The base class constructor expected a const string, and the other PGPROPERTY constructors do as well, so make this const. This was also a compile error when building against wx 3.3. --- include/properties/pg_properties.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/properties/pg_properties.h b/include/properties/pg_properties.h index 4586256ed8..bc6d8d011e 100644 --- a/include/properties/pg_properties.h +++ b/include/properties/pg_properties.h @@ -132,7 +132,7 @@ protected: class PGPROPERTY_COLORENUM : public wxEnumProperty { public: - PGPROPERTY_COLORENUM( const wxString& aLabel, wxString& aName, wxPGChoices* aChoices, + PGPROPERTY_COLORENUM( const wxString& aLabel, const wxString& aName, wxPGChoices* aChoices, int aValue = 0 ) : wxEnumProperty( aLabel, aName, *aChoices, aValue ), m_colorFunc( []( int aDummy ) { return wxNullColour; } )