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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/tools/ParticleInterface.cc

    r3280 r3301  
    7979        }
    8080
    81         this->setDetailLevel((unsigned int)detaillevel);
     81        this->setDetailLevel(static_cast<unsigned int>(detaillevel));
    8282    }
    8383
     
    185185    void ParticleInterface::detailLevelChanged(unsigned int newlevel)
    186186    {
    187         if (newlevel >= (unsigned int)this->detaillevel_)
     187        if (newlevel >= static_cast<unsigned int>(this->detaillevel_))
    188188            this->bAllowedByLOD_ = true;
    189189        else
Note: See TracChangeset for help on using the changeset viewer.