summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/point_tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-10-21 11:07:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-10-21 11:07:15 +0200
commit848fc7446a1de90b1247d1fe7d56ce4f81369fc7 (patch)
tree588d21d47444998a19ebdaaf00a3a7517645b9a4 /tracker-pt/point_tracker.cpp
parent5ec680d09ced3cdf10ae4fe6ee36985dbcba913c (diff)
tracker/pt: fix typoopentrack-2021.1.3
No functional changes.
Diffstat (limited to 'tracker-pt/point_tracker.cpp')
-rw-r--r--tracker-pt/point_tracker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp
index c35e4f37..aca07d8e 100644
--- a/tracker-pt/point_tracker.cpp
+++ b/tracker-pt/point_tracker.cpp
@@ -76,10 +76,10 @@ void PointModel::get_d_order(const vec2* points, unsigned* d_order, const vec2&
t d_vals[cnt];
// get sort indices with respect to d scalar product
for (unsigned i = 0; i < cnt; ++i)
- d_vals[i] = t(d.dot(points[i]), i);
+ d_vals[i] = {d.dot(points[i]), i};
std::sort(std::begin(d_vals), std::end(d_vals),
- [](t a, t& b) { return a.first < b.first; });
+ [](t a, t b) { return a.first < b.first; });
for (unsigned i = 0; i < cnt; ++i)
d_order[i] = d_vals[i].second;