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.
This commit is contained in:
parent
b6d082a7a6
commit
008e72c3ac
1 changed files with 1 additions and 1 deletions
|
|
@ -479,8 +479,8 @@ class wxMyVariantData : public wxVariantData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxMyVariantData(const MyClass& value)
|
wxMyVariantData(const MyClass& value)
|
||||||
|
: m_value(value)
|
||||||
{
|
{
|
||||||
m_value = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Eq(wxVariantData& WXUNUSED(data)) const override
|
virtual bool Eq(wxVariantData& WXUNUSED(data)) const override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue