]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove the non-const operator[] from VertexArray to make it clearer when modification...
authorMikko Rasa <tdb@tdb.fi>
Wed, 12 Jan 2011 19:08:09 +0000 (19:08 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 12 Jan 2011 19:08:09 +0000 (19:08 +0000)
source/vertexarray.h

index 079c2234cc5a598ac5abdb21925aa55c00ca8123..3b67527864a014908b3b2349d3616a455ec39699 100644 (file)
@@ -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: