Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2015, 6:45:20 PM (9 years ago)
Author:
landauf
Message:

no need to call get() on Weak or StrongPtr. they are automatically converted to normal pointers.

Location:
code/branches/core7/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/orxonox/interfaces/PlayerTrigger.h

    r9667 r10558  
    6363        */
    6464        inline Pawn* getTriggeringPawn(void) const
    65             { return this->pawn_.get(); }
     65            { return this->pawn_; }
    6666
    6767        /**
  • code/branches/core7/src/orxonox/overlays/OverlayGroup.cc

    r10555 r10558  
    135135            for (unsigned int i = 0; i != index; ++it, ++i)
    136136                ;
    137             return it->get();
     137            return *it;
    138138        }
    139139        else
  • code/branches/core7/src/orxonox/worldentities/ControllableEntity.cc

    r10555 r10558  
    215215            {
    216216                this->cameraPositions_.front()->attachCamera(this->camera_);
    217                 this->currentCameraPosition_ = this->cameraPositions_.front().get();
     217                this->currentCameraPosition_ = this->cameraPositions_.front();
    218218            }
    219219            else if (this->cameraPositions_.size() > 0)
  • code/branches/core7/src/orxonox/worldentities/ControllableEntity.h

    r10555 r10558  
    155155
    156156            inline Controller* getController() const
    157                 { return this->controller_.get(); }
     157                { return this->controller_; }
    158158            void setController(Controller* val);
    159159
     
    161161            virtual void setTarget( WorldEntity* target );
    162162            virtual WorldEntity* getTarget()
    163                 { return this->target_.get(); }
     163                { return this->target_; }
    164164            void setTargetInternal( uint32_t targetID );
    165165
Note: See TracChangeset for help on using the changeset viewer.