From: DaveG <da...@us...> - 2006-02-06 03:13:14
|
Update of /cvsroot/planeshift/planeshift/src/common/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8610/src/common/util Modified Files: psdatabase.h Log Message: cleanups Index: psdatabase.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/util/psdatabase.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** psdatabase.h 17 Jan 2006 10:49:16 -0000 1.5 --- psdatabase.h 6 Feb 2006 03:13:02 -0000 1.6 *************** *** 39,46 **** #define PS_PASS "planeshift" - // This is not a good way. Maybe we need another table "constants" - #define MAX_INVENTORY 16 - #define MAX_OFFERING_INVENTORY 4 - class psDatabase { --- 39,42 ---- *************** *** 133,139 **** iResultSet *rs; ! Result() { rs = NULL; }; Result(iResultSet* resset) : rs(resset) {} ! ~Result() { if (rs) rs->Release(); }; bool IsValid() { return rs != NULL; } --- 129,135 ---- iResultSet *rs; ! Result() { rs = NULL; } Result(iResultSet* resset) : rs(resset) {} ! ~Result() { if (rs) rs->Release(); } bool IsValid() { return rs != NULL; } *************** *** 148,154 **** { return (*rs)[whichrow]; ! }; ! unsigned long Count(void) { return rs->Count(); }; }; --- 144,150 ---- { return (*rs)[whichrow]; ! } ! unsigned long Count(void) { return rs->Count(); } }; |