]> git.saurik.com Git - wxWidgets.git/commitdiff
use explicit virtual keyword with overridden virtual methods
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 19:14:13 +0000 (19:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 30 Oct 2006 19:14:13 +0000 (19:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/animate.h

index f56056e5956087c88bb571f1a96687fb5cc3797f..f0cf9bbf9f3c09e53446f575416edd8c0d66b942 100644 (file)
@@ -28,16 +28,18 @@ public:
     bool operator != (const wxAnimation& anim) const
         { return m_refData != anim.m_refData; }
 
-    bool IsOk() const
+    virtual bool IsOk() const
         { return m_refData != NULL; }
 
-    size_t GetFrameCount() const;
-    int GetDelay(size_t i) const;
-    wxImage GetFrame(size_t i) const;
-    wxSize GetSize() const;
+    virtual size_t GetFrameCount() const;
+    virtual int GetDelay(size_t i) const;
+    virtual wxImage GetFrame(size_t i) const;
+    virtual wxSize GetSize() const;
 
-    bool LoadFile(const wxString& filename, wxAnimationType type = wxANIMATION_TYPE_ANY);
-    bool Load(wxInputStream &stream, wxAnimationType type = wxANIMATION_TYPE_ANY);
+    virtual bool LoadFile(const wxString& filename,
+                          wxAnimationType type = wxANIMATION_TYPE_ANY);
+    virtual bool Load(wxInputStream& stream,
+                      wxAnimationType type = wxANIMATION_TYPE_ANY);
 
 public:     // extended interface used by the generic implementation of wxAnimationCtrl