Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

replace 'NULL' by 'nullptr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.