X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..39c20230ba7ca49fbdfd7c558b4669ddc15ba4aa:/src/unix/epolldispatcher.cpp diff --git a/src/unix/epolldispatcher.cpp b/src/unix/epolldispatcher.cpp index 011e8ae49e..533d15b45a 100644 --- a/src/unix/epolldispatcher.cpp +++ b/src/unix/epolldispatcher.cpp @@ -23,9 +23,13 @@ #include "wx/unix/private/epolldispatcher.h" #include "wx/unix/private.h" -#include "wx/log.h" #include "wx/module.h" +#ifndef WX_PRECOMP + #include "wx/log.h" + #include "wx/intl.h" +#endif + #include #include @@ -82,9 +86,6 @@ wxEpollDispatcher::wxEpollDispatcher() bool wxEpollDispatcher::RegisterFD(int fd, wxFDIOHandler* handler, int flags) { - if ( !wxFDIODispatcher::RegisterFD(fd, handler, flags) ) - return false; - epoll_event ev; ev.events = GetEpollMask(flags, fd); ev.data.ptr = handler; @@ -103,9 +104,6 @@ bool wxEpollDispatcher::RegisterFD(int fd, wxFDIOHandler* handler, int flags) bool wxEpollDispatcher::ModifyFD(int fd, wxFDIOHandler* handler, int flags) { - if ( !wxFDIODispatcher::ModifyFD(fd, handler, flags) ) - return false; - epoll_event ev; ev.events = GetEpollMask(flags, fd); ev.data.ptr = handler; @@ -122,12 +120,8 @@ bool wxEpollDispatcher::ModifyFD(int fd, wxFDIOHandler* handler, int flags) return true; } -wxFDIOHandler *wxEpollDispatcher::UnregisterFD(int fd, int flags) +bool wxEpollDispatcher::UnregisterFD(int fd, int flags) { - wxFDIOHandler * const handler = wxFDIODispatcher::UnregisterFD(fd, flags); - if ( !handler ) - return NULL; - epoll_event ev; ev.events = 0; ev.data.ptr = NULL; @@ -138,7 +132,7 @@ wxFDIOHandler *wxEpollDispatcher::UnregisterFD(int fd, int flags) fd, m_epollDescriptor); } - return handler; + return true; } void wxEpollDispatcher::RunLoop(int timeout)