1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-13 08:06:32 +01:00

ThomasFeher - Unused parameters clean up.

This commit is contained in:
James Crook
2016-09-11 20:30:06 +01:00
parent e8bf7a41eb
commit 65c7e8051a
25 changed files with 52 additions and 46 deletions

View File

@@ -105,6 +105,7 @@ void CommandImplementation::TypeCheck(const wxString &typeName,
const wxString &paramName,
const wxVariant &param)
{
// this macro is empty if wxWidgets is not compiled in debug mode
wxASSERT_MSG(param.IsType(typeName),
GetName()
+ wxT("command tried to get '")
@@ -116,6 +117,7 @@ void CommandImplementation::TypeCheck(const wxString &typeName,
void CommandImplementation::CheckParam(const wxString &paramName)
{
// this macro is empty if wxWidgets is not compiled in debug mode
wxASSERT_MSG(mParams.find(paramName) != mParams.end(),
GetName()
+ wxT("command tried to get '")

View File

@@ -43,12 +43,13 @@ wxString KeyStringNormalize(const wxString & key)
#endif
}
wxString KeyStringDisplay(const wxString & key, bool useSspecialChars)
wxString KeyStringDisplay(const wxString & key, bool usesSpecialChars)
{
(void)usesSpecialChars;//compiler food
wxString newkey = KeyStringNormalize(key);
#if defined(__WXMAC__)
if (!useSspecialChars) {
if (!usesSpecialChars) {
// Compose user-visible keystroke names, all ASCII
newkey.Replace(wxT("XCtrl+"), wxT("Control+"));
newkey.Replace(wxT("Alt+"), wxT("Option+"));