Avoid ambiguity with the deprecated wxToolBar::AddTool() overload
Remove the default value for the "toggle" argument of the deprecated AddTool() overload to ensure that code calling AddTool() with just the ID, label and bitmap compiles even with WXWIN_COMPATIBILITY_2_8 defined. This fixes building wrapsizer sample in this build.
This commit is contained in:
parent
5c239e13f1
commit
f5cccfedec
@ -503,7 +503,7 @@ public:
|
||||
wxToolBarToolBase *AddTool(int toolid,
|
||||
const wxBitmap& bitmap,
|
||||
const wxBitmap& bmpDisabled,
|
||||
bool toggle = false,
|
||||
bool toggle,
|
||||
wxObject *clientData = NULL,
|
||||
const wxString& shortHelpString = wxEmptyString,
|
||||
const wxString& longHelpString = wxEmptyString)
|
||||
|
Loading…
Reference in New Issue
Block a user