From a13f23f2445719987992faad69f7f3fb564e69e2 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 6 Jul 2017 15:17:56 +0200 Subject: [PATCH] timestamped_list: use const ref --- src/modules/mavlink/timestamped_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mavlink/timestamped_list.h b/src/modules/mavlink/timestamped_list.h index 3ee4ee8c6b..15da376c19 100644 --- a/src/modules/mavlink/timestamped_list.h +++ b/src/modules/mavlink/timestamped_list.h @@ -66,7 +66,7 @@ public: /** * Insert a value into the list, overwrite the oldest entry if full. */ - void put(T new_value) + void put(const T &new_value) { hrt_abstime now = hrt_absolute_time();