Author: Diego Barrios Romero <[email protected]>
Date:   Tue Jun 12 13:49:07 2012 +0200

No method call for simple operations inside the class

---

 synfig-core/src/synfig/colorbase.h |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/synfig-core/src/synfig/colorbase.h 
b/synfig-core/src/synfig/colorbase.h
index 14dbc05..07dac91 100644
--- a/synfig-core/src/synfig/colorbase.h
+++ b/synfig-core/src/synfig/colorbase.h
@@ -113,27 +113,27 @@ public:
        float get_y() const
        {
                return
-                       (float)get_r()*EncodeYUV[0][0]+
-                       (float)get_g()*EncodeYUV[0][1]+
-                       (float)get_b()*EncodeYUV[0][2];
+                       (float)r_*EncodeYUV[0][0]+
+                       (float)g_*EncodeYUV[0][1]+
+                       (float)b_*EncodeYUV[0][2];
        }
 
        //! Returns U component of chromanance
        float get_u() const
        {
                return
-                       (float)get_r()*EncodeYUV[1][0]+
-                       (float)get_g()*EncodeYUV[1][1]+
-                       (float)get_b()*EncodeYUV[1][2];
+                       (float)r_*EncodeYUV[1][0]+
+                       (float)g_*EncodeYUV[1][1]+
+                       (float)b_*EncodeYUV[1][2];
        }
 
        //! Returns V component of chromanance
        float get_v() const
        {
                return
-                       (float)get_r()*EncodeYUV[2][0]+
-                       (float)get_g()*EncodeYUV[2][1]+
-                       (float)get_b()*EncodeYUV[2][2];
+                       (float)r_*EncodeYUV[2][0]+
+                       (float)g_*EncodeYUV[2][1]+
+                       (float)b_*EncodeYUV[2][2];
        }
 
        //! Returns the color's saturation


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to