Ignore:
Timestamp:
06/20/15 00:05:17 (10 years ago)
Author:
epyon
Message:
  • code compiles cleanly on maximum warning level
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/interface/uniform.hh

    r399 r406  
    106106                typedef uniform<T> uniform_type;
    107107
    108                 engine_uniform( uniform_base* u ) : m_uniform( (uniform<T>*)u ) {}
     108                engine_uniform( uniform_base* u ) : m_uniform( static_cast<uniform<T>*>( u ) ) {}
    109109        protected:
    110110                uniform<T>* m_uniform;
     
    145145
    146146                engine_link_uniform() {}
    147                 virtual void set( uniform_base* u ) { set_impl( (uniform<T>*)u ); }
     147                virtual void set( uniform_base* u ) { set_impl( static_cast<uniform<T>*>(u) ); }
    148148                virtual void set_impl( uniform<T>* u ) = 0;
    149149        };
Note: See TracChangeset for help on using the changeset viewer.