]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
added Add/InsertTool() (patch 672032)
[wxWidgets.git] / src / common / socket.cpp
index 2c44f0dd13a4f9b22021d7d5987b88f7bfd19d52..d79c4986c20a72c2309a11a0ab6992c5c248799f 100644 (file)
@@ -834,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;