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:
Vadim Zeitlin 2023-05-03 23:02:35 +02:00
parent 5c239e13f1
commit f5cccfedec

View File

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