From: Mikko Rasa Date: Wed, 12 Jan 2011 19:08:09 +0000 (+0000) Subject: Remove the non-const operator[] from VertexArray to make it clearer when modification... X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=249ce48a66074d0f0b6e23caeb77fad7c3d238ae;p=libs%2Fgl.git Remove the non-const operator[] from VertexArray to make it clearer when modifications are made --- diff --git a/source/vertexarray.h b/source/vertexarray.h index 079c2234..3b675278 100644 --- a/source/vertexarray.h +++ b/source/vertexarray.h @@ -74,7 +74,6 @@ public: void apply() const; float *append(); float *modify(unsigned); - float *operator[](unsigned i) { return modify(i); } const float *operator[](unsigned i) const { return &data[0]+i*stride; } private: