diff --git a/include/audacity/ComponentInterface.h b/include/audacity/ComponentInterface.h index ec205c239..00e609af2 100644 --- a/include/audacity/ComponentInterface.h +++ b/include/audacity/ComponentInterface.h @@ -138,7 +138,7 @@ public: const wxString GetTranslatedName(); // non-virtual convenience function - const TranslatableString &GetUntranslatedName(); + const TranslatableString GetUntranslatedName(); // Parameters, if defined. false means no defined parameters. virtual bool DefineParams( ShuttleParams & WXUNUSED(S) ){ return false;}; diff --git a/src/PluginManager.cpp b/src/PluginManager.cpp index cd6bea0ac..2baa20083 100644 --- a/src/PluginManager.cpp +++ b/src/PluginManager.cpp @@ -3219,7 +3219,7 @@ const wxString ComponentInterface::GetTranslatedName() return GetSymbol().Translation(); } -const TranslatableString &ComponentInterface::GetUntranslatedName() +const TranslatableString ComponentInterface::GetUntranslatedName() { return GetSymbol().Msgid(); }