timestamped_list: use const ref

This commit is contained in:
Julian Oes
2017-07-08 11:52:23 +02:00
committed by Lorenz Meier
parent 7e1e98b258
commit a13f23f244
+1 -1
View File
@@ -66,7 +66,7 @@ public:
/** /**
* Insert a value into the list, overwrite the oldest entry if full. * 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(); hrt_abstime now = hrt_absolute_time();