Resolve -Wsuggest-override warnings.
This commit is contained in:
@@ -30,11 +30,11 @@ public:
|
||||
virtual ~wxEpollDispatcher();
|
||||
|
||||
// implement base class pure virtual methods
|
||||
virtual bool RegisterFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL);
|
||||
virtual bool ModifyFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL);
|
||||
virtual bool UnregisterFD(int fd);
|
||||
virtual bool HasPending() const;
|
||||
virtual int Dispatch(int timeout = TIMEOUT_INFINITE);
|
||||
virtual bool RegisterFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL) wxOVERRIDE;
|
||||
virtual bool ModifyFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL) wxOVERRIDE;
|
||||
virtual bool UnregisterFD(int fd) wxOVERRIDE;
|
||||
virtual bool HasPending() const wxOVERRIDE;
|
||||
virtual int Dispatch(int timeout = TIMEOUT_INFINITE) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// ctor is private, use Create()
|
||||
|
@@ -31,7 +31,7 @@ public:
|
||||
}
|
||||
|
||||
// Called when the associated descriptor is available for reading.
|
||||
virtual void OnReadWaiting()
|
||||
virtual void OnReadWaiting() wxOVERRIDE
|
||||
{
|
||||
// Sync process, process all data coming at us from the pipe so that
|
||||
// the pipe does not get full and cause a deadlock situation.
|
||||
@@ -44,8 +44,8 @@ public:
|
||||
// These methods are never called as we only monitor the associated FD for
|
||||
// reading, but we still must implement them as they're pure virtual in the
|
||||
// base class.
|
||||
virtual void OnWriteWaiting() { }
|
||||
virtual void OnExceptionWaiting() { }
|
||||
virtual void OnWriteWaiting() wxOVERRIDE { }
|
||||
virtual void OnExceptionWaiting() wxOVERRIDE { }
|
||||
|
||||
// Disable any future calls to our OnReadWaiting(), can be called when
|
||||
// we're sure that no more input is forthcoming.
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
virtual void DoDisable()
|
||||
virtual void DoDisable() wxOVERRIDE
|
||||
{
|
||||
m_dispatcher.UnregisterFD(m_fd);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
virtual void DoDisable()
|
||||
virtual void DoDisable() wxOVERRIDE
|
||||
{
|
||||
delete m_source;
|
||||
m_source = NULL;
|
||||
|
@@ -19,8 +19,8 @@
|
||||
class wxFDIOManagerUnix : public wxFDIOManager
|
||||
{
|
||||
public:
|
||||
virtual int AddInput(wxFDIOHandler *handler, int fd, Direction d);
|
||||
virtual void RemoveInput(wxFDIOHandler *handler, int fd, Direction d);
|
||||
virtual int AddInput(wxFDIOHandler *handler, int fd, Direction d) wxOVERRIDE;
|
||||
virtual void RemoveInput(wxFDIOHandler *handler, int fd, Direction d) wxOVERRIDE;
|
||||
};
|
||||
|
||||
#endif // _UNIX_PRIVATE_FDIOUNIX_H_
|
||||
|
@@ -60,9 +60,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:
|
||||
wxFSWatcherImplUnix* m_service;
|
||||
|
@@ -21,7 +21,7 @@ public:
|
||||
bool IsOpened() const { return !Eof(); }
|
||||
|
||||
// return true if we have anything to read, don't block
|
||||
virtual bool CanRead() const;
|
||||
virtual bool CanRead() const wxOVERRIDE;
|
||||
};
|
||||
|
||||
class wxPipeOutputStream : public wxFileOutputStream
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
|
||||
// Override the base class version to ignore "pipe full" errors: this is
|
||||
// not an error for this class.
|
||||
size_t OnSysWrite(const void *buffer, size_t size);
|
||||
size_t OnSysWrite(const void *buffer, size_t size) wxOVERRIDE;
|
||||
};
|
||||
|
||||
#endif // _WX_UNIX_PRIVATE_PIPESTREAM_H_
|
||||
|
@@ -34,9 +34,9 @@ public:
|
||||
m_fds[1] = -1;
|
||||
}
|
||||
|
||||
virtual wxSocketError GetLastError() const;
|
||||
virtual wxSocketError GetLastError() const wxOVERRIDE;
|
||||
|
||||
virtual void ReenableEvents(wxSocketEventFlags flags)
|
||||
virtual void ReenableEvents(wxSocketEventFlags flags) wxOVERRIDE
|
||||
{
|
||||
// enable the notifications about input/output being available again in
|
||||
// case they were disabled by OnRead/WriteWaiting()
|
||||
@@ -54,20 +54,20 @@ public:
|
||||
}
|
||||
|
||||
// wxFDIOHandler methods
|
||||
virtual void OnReadWaiting();
|
||||
virtual void OnWriteWaiting();
|
||||
virtual void OnExceptionWaiting();
|
||||
virtual bool IsOk() const { return m_fd != INVALID_SOCKET; }
|
||||
virtual void OnReadWaiting() wxOVERRIDE;
|
||||
virtual void OnWriteWaiting() wxOVERRIDE;
|
||||
virtual void OnExceptionWaiting() wxOVERRIDE;
|
||||
virtual bool IsOk() const wxOVERRIDE { return m_fd != INVALID_SOCKET; }
|
||||
|
||||
private:
|
||||
virtual void DoClose()
|
||||
virtual void DoClose() wxOVERRIDE
|
||||
{
|
||||
DisableEvents();
|
||||
|
||||
close(m_fd);
|
||||
}
|
||||
|
||||
virtual void UnblockAndRegisterWithEventLoop()
|
||||
virtual void UnblockAndRegisterWithEventLoop() wxOVERRIDE
|
||||
{
|
||||
int trueArg = 1;
|
||||
ioctl(m_fd, FIONBIO, &trueArg);
|
||||
@@ -114,16 +114,16 @@ public:
|
||||
m_fdioManager = NULL;
|
||||
}
|
||||
|
||||
virtual bool OnInit();
|
||||
virtual void OnExit() { }
|
||||
virtual bool OnInit() wxOVERRIDE;
|
||||
virtual void OnExit() wxOVERRIDE { }
|
||||
|
||||
virtual wxSocketImpl *CreateSocket(wxSocketBase& wxsocket)
|
||||
virtual wxSocketImpl *CreateSocket(wxSocketBase& wxsocket) wxOVERRIDE
|
||||
{
|
||||
return new wxSocketImplUnix(wxsocket);
|
||||
}
|
||||
|
||||
virtual void Install_Callback(wxSocketImpl *socket_, wxSocketNotify event);
|
||||
virtual void Uninstall_Callback(wxSocketImpl *socket_, wxSocketNotify event);
|
||||
virtual void Install_Callback(wxSocketImpl *socket_, wxSocketNotify event) wxOVERRIDE;
|
||||
virtual void Uninstall_Callback(wxSocketImpl *socket_, wxSocketNotify event) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// get the FD index corresponding to the given wxSocketNotify
|
||||
|
@@ -30,9 +30,9 @@ public:
|
||||
wxUnixTimerImpl(wxTimer *timer);
|
||||
virtual ~wxUnixTimerImpl();
|
||||
|
||||
virtual bool IsRunning() const;
|
||||
virtual bool Start(int milliseconds = -1, bool oneShot = false);
|
||||
virtual void Stop();
|
||||
virtual bool IsRunning() const wxOVERRIDE;
|
||||
virtual bool Start(int milliseconds = -1, bool oneShot = false) wxOVERRIDE;
|
||||
virtual void Stop() wxOVERRIDE;
|
||||
|
||||
// for wxTimerScheduler only: resets the internal flag indicating that the
|
||||
// timer is running
|
||||
|
@@ -44,9 +44,9 @@ public:
|
||||
|
||||
|
||||
// Implement wxEventLoopSourceHandler pure virtual methods
|
||||
virtual void OnReadWaiting();
|
||||
virtual void OnWriteWaiting() { }
|
||||
virtual void OnExceptionWaiting() { }
|
||||
virtual void OnReadWaiting() wxOVERRIDE;
|
||||
virtual void OnWriteWaiting() wxOVERRIDE { }
|
||||
virtual void OnExceptionWaiting() wxOVERRIDE { }
|
||||
|
||||
private:
|
||||
wxPipe m_pipe;
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
WakeUpNoLock();
|
||||
}
|
||||
|
||||
virtual void OnReadWaiting()
|
||||
virtual void OnReadWaiting() wxOVERRIDE
|
||||
{
|
||||
wxCriticalSectionLocker lock(m_pipeLock);
|
||||
|
||||
|
Reference in New Issue
Block a user