PhyObj::load() takes const ptr
This commit is contained in:
parent
5a0eea19f5
commit
be15f95560
@ -41,7 +41,7 @@ PhyObj::Geom::Geom(PhyObj::GeomType type, refptr< vector<float> > args)
|
||||
|
||||
|
||||
/********** PhyObj functions **********/
|
||||
void PhyObj::load(unsigned char *data, unsigned int size)
|
||||
void PhyObj::load(const unsigned char *data, unsigned int size)
|
||||
{
|
||||
string str((char *) data, size);
|
||||
stringstream istr(str, ios_base::in);
|
||||
|
@ -28,7 +28,7 @@ class PhyObj
|
||||
};
|
||||
|
||||
/* Methods */
|
||||
void load(unsigned char *data, unsigned int size);
|
||||
void load(const unsigned char *data, unsigned int size);
|
||||
size_t getNumGeoms() { return m_geoms.size(); }
|
||||
refptr<Geom> getGeom(int i) { return m_geoms[i]; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user