[cgkit-commits] cgkit2/supportlib/include arrayslot.h,1.6,1.7 slot.h,1.6,1.7
Brought to you by:
mbaas
From: Matthias B. <mb...@us...> - 2005-05-08 22:12:42
|
Update of /cvsroot/cgkit/cgkit2/supportlib/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv837 Modified Files: arrayslot.h slot.h Log Message: Don't initialize slot values with 0 anymore but with a new value that is created using the standard constructor. Now non-numeric slots (like string slots) are properly initialized. Index: slot.h =================================================================== RCS file: /cvsroot/cgkit/cgkit2/supportlib/include/slot.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** slot.h 28 Apr 2005 17:37:04 -0000 1.6 --- slot.h 8 May 2005 22:12:32 -0000 1.7 *************** *** 558,562 **** template<class T> Slot<T>::Slot(int aflags) ! : dependents(), controller(0), flags(aflags), value(0) { DEBUGINFO2(this, "Slot<T>::Slot(aflags=%d) (%s)", aflags, typeid(T).name()); --- 558,562 ---- template<class T> Slot<T>::Slot(int aflags) ! : dependents(), controller(0), flags(aflags), value(T()) { DEBUGINFO2(this, "Slot<T>::Slot(aflags=%d) (%s)", aflags, typeid(T).name()); Index: arrayslot.h =================================================================== RCS file: /cvsroot/cgkit/cgkit2/supportlib/include/arrayslot.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** arrayslot.h 3 May 2005 13:49:59 -0000 1.6 --- arrayslot.h 8 May 2005 22:12:32 -0000 1.7 *************** *** 149,153 **** for(i=m*multiplicity; i<size*multiplicity; i++) { ! p[i] = T(0); } } --- 149,154 ---- for(i=m*multiplicity; i<size*multiplicity; i++) { ! // p[i] = T(0); ! p[i] = T(); } } |