Add wxOVERRIDE and use it in common and wxOSX code.
Make overriding virtual methods more explicit and enable additional checks provided by C++11 compilers when "override" is used. Closes #16100. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,9 +45,9 @@ public:
|
||||
m_service(service)
|
||||
{ }
|
||||
|
||||
virtual void OnReadWaiting();
|
||||
virtual void OnWriteWaiting();
|
||||
virtual void OnExceptionWaiting();
|
||||
virtual void OnReadWaiting() wxOVERRIDE;
|
||||
virtual void OnWriteWaiting() wxOVERRIDE;
|
||||
virtual void OnExceptionWaiting() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxFSWatcherImplKqueue* m_service;
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
delete m_handler;
|
||||
}
|
||||
|
||||
bool Init()
|
||||
bool Init() wxOVERRIDE
|
||||
{
|
||||
wxCHECK_MSG( !IsOk(), false,
|
||||
"Kqueue appears to be already initialized" );
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
wxDELETE(m_source);
|
||||
}
|
||||
|
||||
virtual bool DoAdd(wxSharedPtr<wxFSWatchEntryKq> watch)
|
||||
virtual bool DoAdd(wxSharedPtr<wxFSWatchEntryKq> watch) wxOVERRIDE
|
||||
{
|
||||
wxCHECK_MSG( IsOk(), false,
|
||||
"Kqueue not initialized or invalid kqueue descriptor" );
|
||||
@@ -140,7 +140,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool DoRemove(wxSharedPtr<wxFSWatchEntryKq> watch)
|
||||
virtual bool DoRemove(wxSharedPtr<wxFSWatchEntryKq> watch) wxOVERRIDE
|
||||
{
|
||||
wxCHECK_MSG( IsOk(), false,
|
||||
"Kqueue not initialized or invalid kqueue descriptor" );
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool RemoveAll()
|
||||
virtual bool RemoveAll() wxOVERRIDE
|
||||
{
|
||||
wxFSWatchEntries::iterator it = m_watches.begin();
|
||||
for ( ; it != m_watches.end(); ++it )
|
||||
|
||||
Reference in New Issue
Block a user