Changeset 10765 for code/branches/cpp11_v2/src/orxonox/collisionshapes
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (10 years ago)
- Location:
- code/branches/cpp11_v2/src/orxonox/collisionshapes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/collisionshapes/CollisionShape.h
r9667 r10765 181 181 182 182 btCollisionShape* collisionShape_; //!< The bullet collision shape of this CollisionShape. 183 CompoundCollisionShape* parent_; //!< The CompoundCollisionShape this CollisionShape belongs to, NULLif it doesn't belong to one.183 CompoundCollisionShape* parent_; //!< The CompoundCollisionShape this CollisionShape belongs to, nullptr if it doesn't belong to one. 184 184 unsigned int parentID_; //!< The objectID of the parent of this CollisionShape, which can either be a CompoundCollisionShape or a WorldEntity. 185 185 -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r10624 r10765 72 72 it->first->destroy(); 73 73 if (this->collisionShape_ == it->second) 74 this->collisionShape_ = NULL; // don't destroy it twice74 this->collisionShape_ = nullptr; // don't destroy it twice 75 75 } 76 76 77 77 delete this->compoundShape_; 78 78 if (this->collisionShape_ == this->compoundShape_) 79 this->collisionShape_ = NULL; // don't destroy it twice79 this->collisionShape_ = nullptr; // don't destroy it twice 80 80 } 81 81 } … … 96 96 void CompoundCollisionShape::attach(CollisionShape* shape) 97 97 { 98 // If either the input shape is NULLor we try to attach the CollisionShape to itself.98 // If either the input shape is nullptr or we try to attach the CollisionShape to itself. 99 99 if (!shape || static_cast<CollisionShape*>(this) == shape) 100 100 return; -
code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc
r10624 r10765 43 43 RegisterObject(WorldEntityCollisionShape); 44 44 45 this->worldEntityOwner_ = NULL;45 this->worldEntityOwner_ = nullptr; 46 46 // suppress synchronisation 47 47 this->setSyncMode(ObjectDirection::None);
Note: See TracChangeset
for help on using the changeset viewer.