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/worldentities/WorldEntity.cc

    r10765 r10768  
    7777        this->node_ = this->getScene()->getRootSceneNode()->createChildSceneNode();
    7878
    79         this->parent_ = 0;
     79        this->parent_ = nullptr;
    8080        this->parentID_ = OBJECTID_UNKNOWN;
    8181        this->bDeleteWithParent_ = true;
     
    9090
    9191        // Default behaviour does not include physics
    92         this->physicalBody_   = 0;
     92        this->physicalBody_   = nullptr;
    9393        this->bPhysicsActive_ = false;
    9494        this->bPhysicsActiveSynchronised_    = false;
     
    498498    void WorldEntity::notifyDetached()
    499499    {
    500         this->parent_ = 0;
     500        this->parent_ = nullptr;
    501501        this->parentID_ = OBJECTID_UNKNOWN;
    502502
     
    525525            ++i;
    526526        }
    527         return 0;
     527        return nullptr;
    528528    }
    529529
     
    856856            deactivatePhysics();
    857857            delete this->physicalBody_;
    858             this->physicalBody_ = 0;
     858            this->physicalBody_ = nullptr;
    859859            this->collisionType_ = None;
    860860            this->collisionTypeSynchronised_ = None;
Note: See TracChangeset for help on using the changeset viewer.