X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ddfed775abd6ccdb00ec9785bd051a658e630d7e..07cf4247ec0ef30223a94d557d7734b1a99f692b:/include/wx/private/selectdispatcher.h diff --git a/include/wx/private/selectdispatcher.h b/include/wx/private/selectdispatcher.h index 9d75cdd77f..5eed47c55c 100644 --- a/include/wx/private/selectdispatcher.h +++ b/include/wx/private/selectdispatcher.h @@ -18,7 +18,9 @@ #ifdef __WATCOMC__ #include #include + #include #include + #include #else #include #endif @@ -82,8 +84,8 @@ private: class WXDLLIMPEXP_BASE wxSelectDispatcher : public wxMappedFDIODispatcher { public: - // creates an instance of this class, the caller takes ownership of it - static wxSelectDispatcher *Create(); + // default ctor + wxSelectDispatcher() { m_maxFD = -1; } // implement pure virtual methods of the base class virtual bool RegisterFD(int fd, wxFDIOHandler *handler, int flags = wxFDIO_ALL); @@ -91,10 +93,6 @@ public: virtual bool UnregisterFD(int fd); virtual void Dispatch(int timeout = TIMEOUT_INFINITE); -protected: - // ctor is not public, use Create() - wxSelectDispatcher(); - private: // common part of RegisterFD() and ModifyFD() bool DoUpdateFDAndHandler(int fd, wxFDIOHandler *handler, int flags);