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

    r10216 r10765  
    4848    RegisterClass(SpaceShip);
    4949
    50     SpaceShip::SpaceShip(Context* context) : Pawn(context), boostBlur_(NULL)
     50    SpaceShip::SpaceShip(Context* context) : Pawn(context), boostBlur_(nullptr)
    5151    {
    5252        RegisterObject(SpaceShip);
     
    196196            if(this->bEnableMotionBlur_)
    197197            {
    198                 if (this->boostBlur_ == NULL && this->hasLocalController() && this->hasHumanController())
     198                if (this->boostBlur_ == nullptr && this->hasLocalController() && this->hasHumanController())
    199199                {
    200200                    this->boostBlur_ = new Shader(this->getScene()->getSceneManager());
     
    305305    void SpaceShip::addEngine(orxonox::Engine* engine)
    306306    {
    307         OrxAssert(engine != NULL, "The engine cannot be NULL.");
     307        OrxAssert(engine != nullptr, "The engine cannot be nullptr.");
    308308        this->engineList_.push_back(engine);
    309309        engine->addToSpaceShip(this);
     
    330330        Get the i-th Engine of the SpaceShip.
    331331    @return
    332         Returns a pointer to the i-the Engine. NULL if there is no Engine with that index.
     332        Returns a pointer to the i-the Engine. nullptr if there is no Engine with that index.
    333333    */
    334334    Engine* SpaceShip::getEngine(unsigned int i)
    335335    {
    336336        if(this->engineList_.size() >= i)
    337             return NULL;
     337            return nullptr;
    338338        else
    339339            return this->engineList_[i];
     
    346346        The name of the engine to be returned.
    347347    @return
    348         Pointer to the engine with the given name, or NULL if not found.
     348        Pointer to the engine with the given name, or nullptr if not found.
    349349    */
    350350    Engine* SpaceShip::getEngineByName(const std::string& name)
     
    355355
    356356        orxout(internal_warning) << "Couldn't find Engine with name \"" << name << "\"." << endl;
    357         return NULL;
     357        return nullptr;
    358358    }
    359359
     
    465465    void SpaceShip::changedEnableMotionBlur()
    466466    {
    467         if (!this->bEnableMotionBlur_ && this->boostBlur_ != NULL)
     467        if (!this->bEnableMotionBlur_ && this->boostBlur_ != nullptr)
    468468        {
    469469            delete this->boostBlur_;
    470             this->boostBlur_ = NULL;
     470            this->boostBlur_ = nullptr;
    471471        }
    472472    }
     
    510510    {
    511511        Camera* camera = CameraManager::getInstance().getActiveCamera();
    512         if(camera != NULL)
     512        if(camera != nullptr)
    513513        {
    514514            this->cameraOriginalPosition_ = camera->getPosition();
Note: See TracChangeset for help on using the changeset viewer.