X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30dfb744887db030ee38663bd206df49cde64990..533bedbf307fd324ebc864ad1b5292977c4fa7bc:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index 401768641e..ee2578f3c2 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -108,7 +108,8 @@ public: bool Destroy(); // state - inline bool Ok() const { return (m_socket != NULL); }; + inline bool Ok() const { return IsOk(); } + inline bool IsOk() const { return (m_socket != NULL); }; inline bool Error() const { return m_error; }; inline bool IsConnected() const { return m_connected; }; inline bool IsData() { return WaitForRead(0, 0); };