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:
@@ -105,6 +105,7 @@ void CommandImplementation::TypeCheck(const wxString &typeName,
|
||||
const wxString ¶mName,
|
||||
const wxVariant ¶m)
|
||||
{
|
||||
// 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 ¶mName)
|
||||
{
|
||||
// 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 '")
|
||||
|
||||
@@ -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+"));
|
||||
|
||||
Reference in New Issue
Block a user