Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2009, 11:53:35 PM (15 years ago)
Author:
rgrieder
Message:

Found a few more C-Style casts.

Location:
code/trunk/src/orxonox/tools
Files:
2 edited

Legend:

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

    r3280 r3300  
    7373        {
    7474            std::string materialName = textureName + "_Material_" + multi_cast<std::string>(materialCount_s++);
    75             Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialName, "General");
     75            Ogre::MaterialPtr material = static_cast<Ogre::MaterialPtr>(Ogre::MaterialManager::getSingleton().create(materialName, "General"));
    7676            material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);
    7777            Ogre::TextureUnitState* textureUnitState = material->getTechnique(0)->getPass(0)->createTextureUnitState();
  • code/trunk/src/orxonox/tools/Timer.h

    r3196 r3300  
    100100            /** @brief Returns the remaining time until the Timer calls the function. @return The remaining time */
    101101            inline float getRemainingTime() const
    102                 { return (float)this->time_ / 1000000.0f; }
     102                { return static_cast<float>(this->time_ / 1000000.0f); }
    103103            /** @brief Gives the Timer some extra time. @param time The amount of extra time in seconds */
    104104            inline void addTime(float time)
Note: See TracChangeset for help on using the changeset viewer.