1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

Use IdentInterfaceSymbol in old-style commands...

... Give each a translatable name, but don't use it anywhere yet, use
the CamelCase name
This commit is contained in:
Paul Licameli
2018-03-15 18:01:06 -04:00
parent e3c54a769e
commit 915e6ead40
7 changed files with 32 additions and 22 deletions

View File

@@ -80,7 +80,8 @@ OldStyleCommandType *CommandDirectory::LookUp(const wxString &cmdName) const
void CommandDirectory::AddCommand(movable_ptr<OldStyleCommandType> &&type)
{
wxASSERT(type != NULL);
wxString cmdName = type->GetName();
// Internal string is shown but only in assertion message
auto cmdName = type->GetName();
wxASSERT_MSG(mCmdMap.find(cmdName) == mCmdMap.end()
, wxT("A command named ") + cmdName
+ wxT(" already exists."));