Initialise vectors in constructor to avoid warnings about uninitialised variables...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 2 Apr 2007 14:51:07 +0000 (14:51 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 2 Apr 2007 14:51:07 +0000 (14:51 +0000)
git-svn-id: http://svn.voria.com/code@418 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/vector.h

index c46a773..e44137a 100644 (file)
@@ -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)); }