From 8d8b0d03b0e56857628f29d5491a040821d50807 Mon Sep 17 00:00:00 2001 From: Moses Turner <moses@collabora.com> Date: Tue, 17 Jan 2023 23:41:27 -0600 Subject: [PATCH] a/util: Constify u_box_iou's Box constructor --- src/xrt/auxiliary/util/u_box_iou.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrt/auxiliary/util/u_box_iou.hpp b/src/xrt/auxiliary/util/u_box_iou.hpp index cc7ce04e5..335e0fa64 100644 --- a/src/xrt/auxiliary/util/u_box_iou.hpp +++ b/src/xrt/auxiliary/util/u_box_iou.hpp @@ -23,9 +23,9 @@ struct Box // No uninitialized memory! Box() : cx(0.0f), cy(0.0f), w(0.0f), h(0.0f) {} - Box(float cx, float cy, float w, float h) : cx(cx), cy(cy), w(w), h(h) {} - Box(float cx, float cy, float size) : cx(cx), cy(cy), w(size), h(size) {} - Box(xrt_vec2 ¢er, float size) : cx(center.x), cy(center.y), w(size), h(size) {} + Box(const float cx, const float cy, const float w, const float h) : cx(cx), cy(cy), w(w), h(h) {} + Box(const float cx, const float cy, const float size) : cx(cx), cy(cy), w(size), h(size) {} + Box(const xrt_vec2 ¢er, const float size) : cx(center.x), cy(center.y), w(size), h(size) {} }; static float