Don't derive wxAnimationImpl from wxObject

This is just unnecessary and having wxAnimation::m_refData->m_refData is
confusing, both in wxGTK version where it's not used and in the generic
one where it is, but can be replaced by more type-safe m_decoder.
This commit is contained in:
Vadim Zeitlin
2020-04-05 23:48:49 +02:00
parent 1bf48dfe29
commit 86d6cb8d1f
5 changed files with 32 additions and 29 deletions

View File

@@ -37,10 +37,11 @@ enum wxAnimationImplType
wxANIMATION_IMPL_TYPE_GENERIC
};
class WXDLLIMPEXP_CORE wxAnimationImpl : public wxObject, public wxRefCounter
class WXDLLIMPEXP_CORE wxAnimationImpl : public wxRefCounter
{
public:
wxAnimationImpl() {}
virtual ~wxAnimationImpl() {}
virtual wxAnimationImplType GetImplType() = 0;