From bfcf93289d3cf9cfef06ae8bb5b1c2eda0385e0b Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 2 Apr 2007 14:51:07 +0000 Subject: [PATCH] Initialise vectors in constructor to avoid warnings about uninitialised variables from valgrind. git-svn-id: http://svn.voria.com/code@418 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/vector.h b/synfig-core/trunk/src/synfig/vector.h index c46a773..e44137a 100644 --- a/synfig-core/trunk/src/synfig/vector.h +++ b/synfig-core/trunk/src/synfig/vector.h @@ -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)); } -- 2.7.4