From 008e72c3ac79a5f875b209ce975237febc3b94db Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 4 Jul 2023 01:47:07 +0200 Subject: [PATCH] Avoid using implicit assignment operator in wxAny test This implicitly declared operator is deprecated because MyClass has an explicitly defined copy ctor, so we either need to define the assignment explicitly too or just not use it at all, as done by this commit. --- tests/any/anytest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/any/anytest.cpp b/tests/any/anytest.cpp index 0e79561596..463bf2af73 100644 --- a/tests/any/anytest.cpp +++ b/tests/any/anytest.cpp @@ -479,8 +479,8 @@ class wxMyVariantData : public wxVariantData { public: wxMyVariantData(const MyClass& value) + : m_value(value) { - m_value = value; } virtual bool Eq(wxVariantData& WXUNUSED(data)) const override