Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

replace '0' by 'nullptr'

Location:
code/branches/cpp11_v2/src/orxonox/collisionshapes
Files:
4 edited

Legend:

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

    r10624 r10768  
    5757        RegisterObject(CollisionShape);
    5858
    59         this->parent_ = 0;
     59        this->parent_ = nullptr;
    6060        this->parentID_ = OBJECTID_UNKNOWN;
    61         this->collisionShape_ = 0;
     61        this->collisionShape_ = nullptr;
    6262        this->position_ = Vector3::ZERO;
    6363        this->orientation_ = Quaternion::IDENTITY;
     
    154154    void CollisionShape::notifyDetached()
    155155    {
    156         this->parent_ = 0;
     156        this->parent_ = nullptr;
    157157        this->parentID_ = OBJECTID_UNKNOWN;
    158158    }
  • 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
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.h

    r9667 r10768  
    7575            void updatePublicShape();
    7676            inline virtual btCollisionShape* createNewShape() const
    77                 { assert(false); return 0; }
     77                { assert(false); return nullptr; }
    7878
    7979            btCompoundShape* compoundShape_;
  • code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc

    r10765 r10768  
    5454        CollisionShape::updateParent();
    5555
    56         assert(this->worldEntityOwner_ != 0);
     56        assert(this->worldEntityOwner_ != nullptr);
    5757        this->worldEntityOwner_->notifyCollisionShapeChanged();
    5858    }
Note: See TracChangeset for help on using the changeset viewer.