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:
parent
2b22ff9f39
commit
a6be0eef4a
|
@ -132,7 +132,7 @@ protected:
|
||||||
class PGPROPERTY_COLORENUM : public wxEnumProperty
|
class PGPROPERTY_COLORENUM : public wxEnumProperty
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PGPROPERTY_COLORENUM( const wxString& aLabel, wxString& aName, wxPGChoices* aChoices,
|
PGPROPERTY_COLORENUM( const wxString& aLabel, const wxString& aName, wxPGChoices* aChoices,
|
||||||
int aValue = 0 ) :
|
int aValue = 0 ) :
|
||||||
wxEnumProperty( aLabel, aName, *aChoices, aValue ),
|
wxEnumProperty( aLabel, aName, *aChoices, aValue ),
|
||||||
m_colorFunc( []( int aDummy ) { return wxNullColour; } )
|
m_colorFunc( []( int aDummy ) { return wxNullColour; } )
|
||||||
|
|
Loading…
Reference in New Issue