From a3bda5be97d788166b47f2962259083c5cf32a0a Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 14 Dec 2019 18:53:05 -0500 Subject: [PATCH] Fix dangling reference bug --- include/audacity/ComponentInterface.h | 2 +- src/PluginManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }