From: John L. <jr...@us...> - 2007-03-19 22:07:43
|
Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28550/wxLua/modules/wxluadebug/src Modified Files: wxldebug.cpp Log Message: initialize wxString vars with constructor not = Index: wxldebug.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/src/wxldebug.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** wxldebug.cpp 19 Mar 2007 21:56:11 -0000 1.26 --- wxldebug.cpp 19 Mar 2007 22:07:27 -0000 1.27 *************** *** 157,161 **** { wxString name; ! wxString source = lua2wx(luaDebug.source); if (currentLine == -1) --- 157,161 ---- { wxString name; ! wxString source(lua2wx(luaDebug.source)); if (currentLine == -1) *************** *** 192,196 **** { int idx = 1; ! wxString name = lua2wx(lua_getlocal(L, &luaDebug, idx)); while (!name.IsEmpty()) { --- 192,196 ---- { int idx = 1; ! wxString name(lua2wx(lua_getlocal(L, &luaDebug, idx))); while (!name.IsEmpty()) { *************** *** 199,203 **** wxString type; wxString value; ! wxString source = lua2wx(luaDebug.source); GetTypeValue(wxlState, -1, type, value); --- 199,203 ---- wxString type; wxString value; ! wxString source(lua2wx(luaDebug.source)); GetTypeValue(wxlState, -1, type, value); *************** *** 213,218 **** lua_pop(L, 1); // remove variable value ! wxLuaDebugDataItem *item = new wxLuaDebugDataItem(name, type, value, source, nRef, 0); ! Add(item); count++; --- 213,217 ---- lua_pop(L, 1); // remove variable value ! Add(new wxLuaDebugDataItem(name, type, value, source, nRef, 0)); count++; *************** *** 269,274 **** lua_pop(L, 1); ! wxLuaDebugDataItem *item = new wxLuaDebugDataItem(name, type, value, source, nRef, nIndex); ! Add(item); count++; } --- 268,272 ---- lua_pop(L, 1); ! Add(new wxLuaDebugDataItem(name, type, value, source, nRef, nIndex)); count++; } *************** *** 299,308 **** case LUA_TBOOLEAN: ! type = wxT("Boolean"); value = MakeBoolean(lua_toboolean(L, index)); break; case LUA_TNUMBER: ! type = wxT("Number"); value = MakeNumber(lua_tonumber(L, index)); break; --- 297,306 ---- case LUA_TBOOLEAN: ! type = wxT("Boolean"); value = MakeBoolean(lua_toboolean(L, index)); break; case LUA_TNUMBER: ! type = wxT("Number"); value = MakeNumber(lua_tonumber(L, index)); break; |