add missing wxABI_VERSION checks for previously-committed wxAnimation ctors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-01-24 10:00:38 +00:00
parent 4eb5b738b0
commit 95a56e2aea
2 changed files with 4 additions and 0 deletions

View File

@@ -23,9 +23,11 @@ WX_DECLARE_LIST_WITH_DECL(wxAnimationDecoder, wxAnimationDecoderList, class WXDL
class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase
{ {
public: public:
#if wxABI_VERSION >= 20810
wxAnimation() {} wxAnimation() {}
wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY)
{ LoadFile(name, type); } { LoadFile(name, type); }
#endif
virtual bool IsOk() const virtual bool IsOk() const
{ return m_refData != NULL; } { return m_refData != NULL; }

View File

@@ -27,8 +27,10 @@ typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter;
class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase
{ {
public: public:
#if wxABI_VERSION >= 20810
wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY)
: m_pixbuf(NULL) { LoadFile(name, type); } : m_pixbuf(NULL) { LoadFile(name, type); }
#endif
wxAnimation(GdkPixbufAnimation *p = NULL); wxAnimation(GdkPixbufAnimation *p = NULL);
wxAnimation(const wxAnimation&); wxAnimation(const wxAnimation&);
~wxAnimation() { UnRef(); } ~wxAnimation() { UnRef(); }