[Libufo-commits] ufo-0.5/src uobject.cpp,1.14,1.15
Status: Beta
Brought to you by:
schmidtjf
|
From: Johannes S. <sch...@us...> - 2005-09-15 10:22:53
|
Update of /cvsroot/libufo/ufo-0.5/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23786/src Modified Files: uobject.cpp Log Message: Added automatic disconnection from signals if the object of an object slot is destroyed (only if object is derived from UObject). Interesting part is the IsDerivedFrom template (love it :). Implemented USlotNode::notify. Index: uobject.cpp =================================================================== RCS file: /cvsroot/libufo/ufo-0.5/src/uobject.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** uobject.cpp 31 Aug 2005 15:30:31 -0000 1.14 --- uobject.cpp 15 Sep 2005 10:22:44 -0000 1.15 *************** *** 109,112 **** --- 109,117 ---- } UObject::~UObject() { + for (std::list<UObjectSlotNode*>::iterator iter = m_objectSlots.begin(); + iter != m_objectSlots.end(); + ++iter) { + (*iter)->notify(true); + } m_sigDestroyed(this); releaseAllPointers(); |