mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Convert all __WXDEBUG__ tests to use new _DEBUG symbol
This symbol is based on the NDEBUG symbol that's automatically defined by CMake.
This commit is contained in:
@@ -726,7 +726,7 @@ CommandListEntry *CommandManager::NewIdentifier(const CommandID & nameIn,
|
||||
CommandListEntry *entry = &*mCommandList.back();
|
||||
mCommandNumericIDHash[entry->id] = entry;
|
||||
|
||||
#if defined(__WXDEBUG__)
|
||||
#if defined(_DEBUG)
|
||||
prev = mCommandNameHash[entry->name];
|
||||
if (prev) {
|
||||
// Under Linux it looks as if we may ask for a newID for the same command
|
||||
@@ -1476,7 +1476,7 @@ void CommandManager::SetCommandFlags(const CommandID &name,
|
||||
entry->flags = flags;
|
||||
}
|
||||
|
||||
#if defined(__WXDEBUG__)
|
||||
#if defined(_DEBUG)
|
||||
void CommandManager::CheckDups()
|
||||
{
|
||||
int cnt = mCommandList.size();
|
||||
|
||||
@@ -286,7 +286,7 @@ class AUDACITY_DLL_API CommandManager final
|
||||
bool GetEnabled(const CommandID &name);
|
||||
int GetNumberOfKeysRead() const;
|
||||
|
||||
#if defined(__WXDEBUG__)
|
||||
#if defined(_DEBUG)
|
||||
void CheckDups();
|
||||
#endif
|
||||
void RemoveDuplicateShortcuts();
|
||||
|
||||
Reference in New Issue
Block a user