33 if (m_owner != NULL) {
34 m_owner->removeFromOwned(
this);
38 foreach (
Owned o, m_owned) {
50 if ((m_owner != NULL) && (m_owner != owner)) {
51 m_owner->removeFromOwned(
this);
57 if (m_owner != NULL) {
58 m_owner->addToOwned(
this, destroy);
62 void Ownable::addToOwned(
Ownable *obj,
bool destroy)
64 m_owned.append(Owned(obj, destroy));
67 void Ownable::removeFromOwned(Ownable *obj)
69 m_owned.removeAll(Owned(obj));