Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2015, 10:25:42 PM (10 years ago)
Author:
landauf
Message:

replace 'NULL' by 'nullptr'

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  
    181181
    182182            btCollisionShape*       collisionShape_; //!< The bullet collision shape of this CollisionShape.
    183             CompoundCollisionShape* parent_; //!< The CompoundCollisionShape this CollisionShape belongs to, NULL if it doesn't belong to one.
     183            CompoundCollisionShape* parent_; //!< The CompoundCollisionShape this CollisionShape belongs to, nullptr if it doesn't belong to one.
    184184            unsigned int            parentID_; //!< The objectID of the parent of this CollisionShape, which can either be a CompoundCollisionShape or a WorldEntity.
    185185
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc

    r10624 r10765  
    7272                it->first->destroy();
    7373                if (this->collisionShape_ == it->second)
    74                     this->collisionShape_ = NULL; // don't destroy it twice
     74                    this->collisionShape_ = nullptr; // don't destroy it twice
    7575            }
    7676
    7777            delete this->compoundShape_;
    7878            if (this->collisionShape_ == this->compoundShape_)
    79                 this->collisionShape_ = NULL; // don't destroy it twice
     79                this->collisionShape_ = nullptr; // don't destroy it twice
    8080        }
    8181    }
     
    9696    void CompoundCollisionShape::attach(CollisionShape* shape)
    9797    {
    98         // If either the input shape is NULL or 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.
    9999        if (!shape || static_cast<CollisionShape*>(this) == shape)
    100100            return;
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc

    r10624 r10765  
    4343        RegisterObject(WorldEntityCollisionShape);
    4444
    45         this->worldEntityOwner_ = NULL;
     45        this->worldEntityOwner_ = nullptr;
    4646        // suppress synchronisation
    4747        this->setSyncMode(ObjectDirection::None);
Note: See TracChangeset for help on using the changeset viewer.