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/controllers/FormationController.cc

    r10631 r10765  
    773773    {
    774774
    775         Pawn *humanPawn = NULL;
    776         NewHumanController *currentHumanController = NULL;
     775        Pawn *humanPawn = nullptr;
     776        NewHumanController *currentHumanController = nullptr;
    777777        std::vector<FormationController*> allMasters;
    778778
     
    800800        }
    801801
    802         if((humanPawn != NULL) && (allMasters.size() != 0))
     802        if((humanPawn != nullptr) && (allMasters.size() != 0))
    803803        {
    804804            float posHuman = humanPawn->getPosition().length();
     
    826826    void FormationController::followInit(Pawn* pawn, const bool always, const int secondsToFollow)
    827827    {
    828         if (pawn == NULL || this->state_ != MASTER)
     828        if (pawn == nullptr || this->state_ != MASTER)
    829829            return;
    830830        this->specificMasterAction_  =  FOLLOW;
     
    844844    {
    845845
    846         Pawn *humanPawn = NULL;
    847         NewHumanController *currentHumanController = NULL;
     846        Pawn *humanPawn = nullptr;
     847        NewHumanController *currentHumanController = nullptr;
    848848
    849849        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it; ++it)
     
    861861        }
    862862
    863         if((humanPawn != NULL))
     863        if((humanPawn != nullptr))
    864864                this->followInit(humanPawn);
    865865    }
Note: See TracChangeset for help on using the changeset viewer.