mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 15:11:36 +08:00
timestamped_list: use const ref
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user