From 249ce48a66074d0f0b6e23caeb77fad7c3d238ae Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Jan 2011 19:08:09 +0000 Subject: [PATCH] Remove the non-const operator[] from VertexArray to make it clearer when modifications are made --- source/vertexarray.h | 1 - 1 file changed, 1 deletion(-) 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: -- 2.43.0