diff --git a/include/wx/sharedptr.h b/include/wx/sharedptr.h index 67618c2b1b..b9db5c8c38 100644 --- a/include/wx/sharedptr.h +++ b/include/wx/sharedptr.h @@ -126,7 +126,7 @@ private: struct reftype_with_deleter : public reftype { reftype_with_deleter(T* ptr, Deleter d) : reftype(ptr), m_deleter(d) {} - virtual void delete_ptr() { m_deleter(this->m_ptr); } + virtual void delete_ptr() wxOVERRIDE { m_deleter(this->m_ptr); } Deleter m_deleter; }; diff --git a/samples/html/htmlctrl/htmlctrl.cpp b/samples/html/htmlctrl/htmlctrl.cpp index fccc1c748c..7679abcc56 100644 --- a/samples/html/htmlctrl/htmlctrl.cpp +++ b/samples/html/htmlctrl/htmlctrl.cpp @@ -66,7 +66,7 @@ public: // this one is called on application startup and is a good place for the app // initialization (doing it here and not in the ctor allows to have an error // return: if OnInit() returns false, the application terminates) - virtual bool OnInit(); + virtual bool OnInit() wxOVERRIDE; }; // Define a new frame type: this is going to be our main frame