From dc53adf70644699887ca0a6eb04021240888d406 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 5 May 2020 16:15:57 -0400 Subject: [PATCH] Rewrite TranslatableString::operator== without dangerous looking casts --- include/audacity/Types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/audacity/Types.h b/include/audacity/Types.h index 6f6b44e30..e137ea985 100644 --- a/include/audacity/Types.h +++ b/include/audacity/Types.h @@ -361,7 +361,7 @@ public: // TranslatableStrings friend bool operator == ( const TranslatableString &x, const TranslatableString &y) - { return (const wxString&)x == (const wxString&)y; } + { return x.mMsgid == y.mMsgid; } friend bool operator != ( const TranslatableString &x, const TranslatableString &y)