Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2015, 10:54:34 PM (8 years ago)
Author:
landauf
Message:

replace '0' by 'nullptr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.cc

    r10765 r10768  
    197197    void CompoundCollisionShape::updatePublicShape()
    198198    {
    199         btCollisionShape* primitive = 0; // The primitive shape, if there is one.
     199        btCollisionShape* primitive = nullptr; // The primitive shape, if there is one.
    200200        bool bPrimitive = true; // Whether the CompoundCollisionShape has just one non-empty CollisionShape. And that shape also has no transformation.
    201201        bool bEmpty = true; // Whether the CompoundCollisionShape is empty.
     
    221221        {
    222222            // If there was none all along, nothing needs to be changed.
    223             if (this->collisionShape_ == 0)
     223            if (this->collisionShape_ == nullptr)
    224224                return;
    225             this->collisionShape_ = 0;
     225            this->collisionShape_ = nullptr;
    226226        }
    227227        // If the CompoundCollisionShape is just a primitive.
     
    253253            ++i;
    254254        }
    255         return 0;
     255        return nullptr;
    256256    }
    257257
Note: See TracChangeset for help on using the changeset viewer.