PhyObj::load() takes const ptr

This commit is contained in:
Josh Holtrop committed 2011-05-21 23:45:13 -04:00
1 parent 5a0eea19f5
commit be15f95560
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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]; }