Don't ignore type qualifiers on a couple of ETL pen functions, fixes a couple of...
authorpabs3 <pabs3@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 6 Nov 2008 04:44:26 +0000 (04:44 +0000)
committerpabs3 <pabs3@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 6 Nov 2008 04:44:26 +0000 (04:44 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2156 1f10aa63-cdf2-0310-b900-c93c546f37ac

ETL/trunk/ETL/_pen.h

index aa6bfab..d1e8082 100644 (file)
@@ -214,9 +214,9 @@ public:
 
        const_reference get_value_clip_at(int x, int y)const { assert(data_); if(clipped(x,y))return value_type(); return ((pointer)(((char*)data_)+y*pitch_))[x]; }
 
-       value_type get_value_clip()const { assert(data_); if(clipped())return value_type(); return *data_; }
+       const value_type get_value_clip()const { assert(data_); if(clipped())return value_type(); return *data_; }
 
-       value_type get_pen_value()const { return value_; }
+       const value_type get_pen_value()const { return value_; }
 
        void put_hline(int l,const value_type &v)
        {for(;l>0;l--,inc_x())put_value(v);}