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.
This commit is contained in:
Ian McInerney 2023-04-12 18:49:02 +01:00
parent 2b22ff9f39
commit a6be0eef4a
1 changed files with 1 additions and 1 deletions

View File

@ -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; } )