Update of /cvsroot/wxlua/wxLua/modules/wxluasocket/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv26661/wxLua/modules/wxluasocket/src
Modified Files:
wxlsock.cpp
Log Message:
add a few wxArray functions to wxLuaDebugData to make it easier to use
use enum instead of define for wxwindow ids
Index: wxlsock.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/src/wxlsock.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** wxlsock.cpp 7 Sep 2006 22:42:19 -0000 1.10
--- wxlsock.cpp 8 Sep 2006 22:43:47 -0000 1.11
***************
*** 140,144 ****
nIndex,
fExpanded);
! debugData.GetDataArray().Add(pItem);
delete[] pBuffer;
--- 140,144 ----
nIndex,
fExpanded);
! debugData.Add(pItem);
delete[] pBuffer;
***************
*** 216,220 ****
{
bool result = false;
! int idx, idxMax = debugData.GetDataArray().Count();
Write((const char *) &idxMax, sizeof(int));
--- 216,220 ----
{
bool result = false;
! int idx, idxMax = debugData.GetCount();
Write((const char *) &idxMax, sizeof(int));
***************
*** 224,228 ****
try
{
! const wxLuaDebugDataItem *item = debugData.GetDataArray().Item(idx);
int nameLength = item->GetName().Length() + 1;
--- 224,228 ----
try
{
! const wxLuaDebugDataItem *item = debugData.Item(idx);
int nameLength = item->GetName().Length() + 1;
|