summaryrefslogtreecommitdiffhomepage
path: root/pose-widget/pose-widget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 22:25:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commitd65936200a2756e6619a109fa6fa673b91df802e (patch)
tree80b6b6fc7ba9023cbe47290b8ae1bc5468a19bb1 /pose-widget/pose-widget.cpp
parent4046773c41ee3c0f65840828ab983cfd13451c85 (diff)
modernize C++ syntax
No visible changes (hopefully).
Diffstat (limited to 'pose-widget/pose-widget.cpp')
-rw-r--r--pose-widget/pose-widget.cpp2
1 files changed, 1 insertions, 1 deletions
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)