Make more ctors of wxGrid classes explicit
Don't allow nonsensical implicit conversion from int to wxGridCellFloatFormat etc. No real changes.
This commit is contained in:
@@ -283,7 +283,7 @@ protected:
|
||||
class WXDLLIMPEXP_ADV wxGridCellChoiceRenderer : public wxGridCellStringRenderer
|
||||
{
|
||||
public:
|
||||
wxGridCellChoiceRenderer(const wxString& choices = wxString());
|
||||
explicit wxGridCellChoiceRenderer(const wxString& choices = wxString());
|
||||
|
||||
wxGridCellChoiceRenderer(const wxGridCellChoiceRenderer& other);
|
||||
|
||||
@@ -309,7 +309,7 @@ protected:
|
||||
class WXDLLIMPEXP_ADV wxGridCellEnumRenderer : public wxGridCellChoiceRenderer
|
||||
{
|
||||
public:
|
||||
wxGridCellEnumRenderer(const wxString& choices = wxString())
|
||||
explicit wxGridCellEnumRenderer(const wxString& choices = wxString())
|
||||
: wxGridCellChoiceRenderer(choices)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user