Revision: 2156
http://synfig.svn.sourceforge.net/synfig/?rev=2156&view=rev
Author: pabs3
Date: 2008-11-06 04:44:26 +0000 (Thu, 06 Nov 2008)
Log Message:
-----------
Don't ignore type qualifiers on a couple of ETL pen functions, fixes a couple
of GCC warnings.
Modified Paths:
--------------
ETL/trunk/ETL/_pen.h
Modified: ETL/trunk/ETL/_pen.h
===================================================================
--- ETL/trunk/ETL/_pen.h 2008-11-06 04:14:42 UTC (rev 2155)
+++ ETL/trunk/ETL/_pen.h 2008-11-06 04:44:26 UTC (rev 2156)
@@ -214,9 +214,9 @@
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);}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl