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:
Vadim Zeitlin
2022-04-28 00:30:44 +02:00
parent 5db2244bc8
commit de8877d3ee
2 changed files with 12 additions and 12 deletions

View File

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