From d65936200a2756e6619a109fa6fa673b91df802e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 26 Jun 2018 22:25:22 +0200 Subject: modernize C++ syntax No visible changes (hopefully). --- pose-widget/pose-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pose-widget/pose-widget.cpp') diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index 9b9a1478..08e3a469 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -407,7 +407,7 @@ vec2 pose_transform::project(const vec3 &point) num y = h_ * translation.y() / 2 / -80; if (fabs(y) > h_/2) y = y > 0 ? h_/2 : h_/-2; - return vec2(z * (ret.x() + x), z * (ret.y() + y)); + return { z * (ret.x() + x), z * (ret.y() + y) }; } vec3 pose_transform::project2(const vec3 &point) -- cgit v1.2.3