From d763e294f44eb38b94bf7e2055b77a982b72b7c0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Aug 2009 17:34:00 +0000 Subject: more constness --- src/math/vector2f.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/math/vector2f.cc') diff --git a/src/math/vector2f.cc b/src/math/vector2f.cc index 2b5ff9e..65f1f93 100644 --- a/src/math/vector2f.cc +++ b/src/math/vector2f.cc @@ -12,17 +12,17 @@ namespace math { -Vector2f::Vector2f() : x(coord[0]), y(coord[1]) +Vector2f::Vector2f() { clear(); } -Vector2f::Vector2f(const Vector2f &other) : x(coord[0]), y(coord[1]) +Vector2f::Vector2f(const Vector2f &other) { assign(other); } -Vector2f::Vector2f(const float x, const float y) : x(coord[0]), y(coord[1]) +Vector2f::Vector2f(const float x, const float y) { assign(x, y); } -- cgit v1.2.3