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/infos/PlayerInfo.cc

    r10624 r10765  
    181181
    182182        RadarViewable* radarviewable = orxonox_cast<RadarViewable*>(entity);
    183         if (radarviewable != NULL)
     183        if (radarviewable != nullptr)
    184184            radarviewable->setRadarName(this->getName());
    185185    }
     
    235235
    236236        Controller* tmp =this->controllableEntity_->getController();
    237         if (tmp == NULL)
    238         {
    239             orxout(verbose) <<  "PlayerInfo: pauseControl, Controller is NULL " << endl;
     237        if (tmp == nullptr)
     238        {
     239            orxout(verbose) <<  "PlayerInfo: pauseControl, Controller is nullptr " << endl;
    240240            return;
    241241        }
    242242        tmp->setActive(false);
    243         //this->controllableEntity_->getController()->setControllableEntity(NULL);
     243        //this->controllableEntity_->getController()->setControllableEntity(nullptr);
    244244        this->controllableEntity_->setController(0);
    245245    }
     
    249249        ControllableEntity* entity = this->controllableEntity_;
    250250
    251         assert(this->controllableEntity_ != NULL);
     251        assert(this->controllableEntity_ != nullptr);
    252252        if( !entity || this->previousControllableEntity_.size() == 0 )
    253253            return;
     
    260260        do {
    261261            this->controllableEntity_ = this->previousControllableEntity_.back();
    262         } while(this->controllableEntity_ == NULL && this->previousControllableEntity_.size() > 0);
     262        } while(this->controllableEntity_ == nullptr && this->previousControllableEntity_.size() > 0);
    263263        this->controllableEntityID_ = this->controllableEntity_->getObjectID();
    264264        this->previousControllableEntity_.pop_back();
    265265
    266         if ( this->controllableEntity_ != NULL && this->controller_ != NULL)
     266        if ( this->controllableEntity_ != nullptr && this->controller_ != nullptr)
    267267            this->controller_->setControllableEntity(this->controllableEntity_);
    268268
    269269         // HACK-ish
    270         if(this->controllableEntity_ != NULL && this->isHumanPlayer())
     270        if(this->controllableEntity_ != nullptr && this->isHumanPlayer())
    271271            this->controllableEntity_->createHud();
    272272
Note: See TracChangeset for help on using the changeset viewer.