Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2009, 4:03:59 PM (15 years ago)
Author:
rgrieder
Message:

Found even more casts. They sure aren't all of them, but I hope to have caught every pointer C-style cast because they can be very dangerous.
Note: I didn't do the pointer casts in the network library because that would have taken way too long.

Location:
code/trunk/src/orxonox/objects/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/ParticleEmitter.h

    r3300 r3301  
    6666                { this->LOD_ = static_cast<LODParticle::Value>(level); this->LODchanged(); }
    6767            inline unsigned int getLODxml() const
    68                 { return (unsigned int)this->LOD_; }
     68                { return static_cast<unsigned int>(this->LOD_); }
    6969
    7070            void sourceChanged();
  • code/trunk/src/orxonox/objects/worldentities/WorldEntity.h

    r3196 r3301  
    148148            inline void setScale3D(float x, float y, float z)
    149149                { this->setScale3D(Vector3(x, y, z)); }
    150             const Vector3& getScale3D(void) const;
     150            const Vector3& getScale3D() const;
    151151            const Vector3& getWorldScale3D() const;
    152152
     
    457457    inline const Quaternion& WorldEntity::getOrientation() const
    458458        { return this->node_->getOrientation(); }
    459     inline const Vector3& WorldEntity::getScale3D(void) const
     459    inline const Vector3& WorldEntity::getScale3D() const
    460460        { return this->node_->getScale(); }
    461461#endif
Note: See TracChangeset for help on using the changeset viewer.