- Timestamp:
- Nov 6, 2015, 10:54:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r10765 r10768 197 197 void CompoundCollisionShape::updatePublicShape() 198 198 { 199 btCollisionShape* primitive = 0; // The primitive shape, if there is one.199 btCollisionShape* primitive = nullptr; // The primitive shape, if there is one. 200 200 bool bPrimitive = true; // Whether the CompoundCollisionShape has just one non-empty CollisionShape. And that shape also has no transformation. 201 201 bool bEmpty = true; // Whether the CompoundCollisionShape is empty. … … 221 221 { 222 222 // If there was none all along, nothing needs to be changed. 223 if (this->collisionShape_ == 0)223 if (this->collisionShape_ == nullptr) 224 224 return; 225 this->collisionShape_ = 0;225 this->collisionShape_ = nullptr; 226 226 } 227 227 // If the CompoundCollisionShape is just a primitive. … … 253 253 ++i; 254 254 } 255 return 0;255 return nullptr; 256 256 } 257 257
Note: See TracChangeset
for help on using the changeset viewer.