X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/007c77ab4decca23af91dbe97a4153a286a22acd..e8617760b089b3dd31e4d77ce493267a82fc1003:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 2848d09a9a..0136da4a20 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -6,7 +6,7 @@ // Copyright: (C) 1999-1997, Guilhem Lavaux // (C) 2000-1999, Guillermo Rodriguez Garcia // RCS_ID: $Id$ -// License: see wxWindows license +// License: see wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ========================================================================== @@ -106,6 +106,8 @@ public: public: wxSocketState() : wxObject() {} + + DECLARE_NO_COPY_CLASS(wxSocketState) }; // ========================================================================== @@ -832,11 +834,11 @@ void wxSocketBase::RestoreState() wxNode *node; wxSocketState *state; - node = m_states.Last(); + node = m_states.GetLast(); if (!node) return; - state = (wxSocketState *)node->Data(); + state = (wxSocketState *)node->GetData(); m_flags = state->m_flags; m_notify = state->m_notify;