Change data and shortHelpString to adhere to naming convention

Rename data to clientData in the inlined overloads. This change is
transparent for any users.

Rename shortHelpString to shortHelp (dito for longHelp). Although this
change is in general visible for any users, Phoenix already mangles the
the parameter names to strip the 'String' suffix.
This commit is contained in:
Stefan Brüns
2020-10-03 16:12:04 +02:00
parent 1171155fee
commit d47b857b09
2 changed files with 10 additions and 10 deletions

View File

@@ -295,10 +295,10 @@ public:
wxItemKind kind = wxITEM_NORMAL,
const wxString& shortHelp = wxEmptyString,
const wxString& longHelp = wxEmptyString,
wxObject *data = NULL)
wxObject *clientData = NULL)
{
return DoAddTool(toolid, label, bitmap, bmpDisabled, kind,
shortHelp, longHelp, data);
shortHelp, longHelp, clientData);
}
// the most common AddTool() version
@@ -318,10 +318,10 @@ public:
const wxBitmap& bmpDisabled = wxNullBitmap,
const wxString& shortHelp = wxEmptyString,
const wxString& longHelp = wxEmptyString,
wxObject *data = NULL)
wxObject *clientData = NULL)
{
return AddTool(toolid, label, bitmap, bmpDisabled, wxITEM_CHECK,
shortHelp, longHelp, data);
shortHelp, longHelp, clientData);
}
// add a radio tool, i.e. a tool which can be toggled and releases any
@@ -332,10 +332,10 @@ public:
const wxBitmap& bmpDisabled = wxNullBitmap,
const wxString& shortHelp = wxEmptyString,
const wxString& longHelp = wxEmptyString,
wxObject *data = NULL)
wxObject *clientData = NULL)
{
return AddTool(toolid, label, bitmap, bmpDisabled, wxITEM_RADIO,
shortHelp, longHelp, data);
shortHelp, longHelp, clientData);
}