cppcheck
This commit is contained in:
@@ -105,7 +105,7 @@ private:
|
||||
{
|
||||
public:
|
||||
|
||||
Material() { cleanup(); }
|
||||
Material():Tr_(0),index_Kd_(0) { cleanup(); }
|
||||
|
||||
void cleanup()
|
||||
{
|
||||
@@ -137,7 +137,7 @@ private:
|
||||
void set_Tr( float t )
|
||||
{ Tr_=t; Tr_is_set_=true; }
|
||||
|
||||
void set_map_Kd( std::string _name, int _index_Kd )
|
||||
void set_map_Kd( const std::string& _name, int _index_Kd )
|
||||
{ map_Kd_ = _name, index_Kd_ = _index_Kd; map_Kd_is_set_ = true; };
|
||||
|
||||
const Vec3f& Kd( void ) const { return Kd_; }
|
||||
|
||||
Reference in New Issue
Block a user