From: John L. <jr...@us...> - 2008-10-29 04:44:44
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1748/wxLua/bindings/wxwidgets Modified Files: wxbase_data.i wxcore_gdi.i Log Message: Fix [] operator for returning a reference & to a class. Simplify code for operators that return a reference to the self. (=, +=, -=, etc) Index: wxcore_gdi.i =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxcore_gdi.i,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** wxcore_gdi.i 24 Oct 2008 04:40:12 -0000 1.6 --- wxcore_gdi.i 29 Oct 2008 04:44:33 -0000 1.7 *************** *** 1494,1497 **** --- 1494,1500 ---- void RemoveAt(size_t nIndex, size_t count = 1) void Shrink() + + %operator wxVideoMode& operator[](size_t nIndex) + %endclass Index: wxbase_data.i =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxbase_data.i,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wxbase_data.i 18 Dec 2007 01:03:32 -0000 1.2 --- wxbase_data.i 29 Oct 2008 04:44:33 -0000 1.3 *************** *** 281,284 **** --- 281,287 ---- void RemoveAt(size_t index) void Shrink() + + %operator int operator[](size_t nIndex) + %endclass *************** *** 317,320 **** --- 320,326 ---- void Shrink() void Sort(bool reverseOrder = false) + + %operator wxString& operator[](size_t nIndex) + %endclass |