From be15f95560671c0d3d66adba2075894957b37969 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 21 May 2011 23:45:13 -0400 Subject: [PATCH] PhyObj::load() takes const ptr --- PhyObj/PhyObj.cc | 2 +- PhyObj/PhyObj.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PhyObj/PhyObj.cc b/PhyObj/PhyObj.cc index 9658a0b..e63f156 100644 --- a/PhyObj/PhyObj.cc +++ b/PhyObj/PhyObj.cc @@ -41,7 +41,7 @@ PhyObj::Geom::Geom(PhyObj::GeomType type, refptr< vector > 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); diff --git a/PhyObj/PhyObj.h b/PhyObj/PhyObj.h index ee846c9..f735514 100644 --- a/PhyObj/PhyObj.h +++ b/PhyObj/PhyObj.h @@ -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 getGeom(int i) { return m_geoms[i]; }