Fix 1795913. Subtract now works with colors.
[synfig.git] / synfig-core / trunk / src / synfig / vector.h
index 25a5e60..c509c3c 100644 (file)
@@ -2,7 +2,7 @@
 /*!    \file vector.h
 **     \brief Various discreet type definitions
 **
-**     $Id: vector.h,v 1.2 2005/01/23 04:03:21 darco Exp $
+**     $Id$
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@ -71,7 +71,7 @@ private:
        value_type _x, _y;
 
 public:
-       Vector() { };
+       Vector(): _x(0.0), _y(0.0) { };
        Vector(const value_type &x, const value_type &y):_x(x),_y(y) { };
 
        bool is_valid()const { return !(isnan(_x) || isnan(_y)); }
@@ -271,7 +271,7 @@ public:
        { return (&a)[i]; }
 
        //! Bezier curve intersection function
-       time_type intersect(const bezier_base<value_type,time_type> &x, time_type near=0.0)const
+       time_type intersect(const bezier_base<value_type,time_type> &/*x*/, time_type /*near*/=0.0)const
        {
                return 0;
        }