From d9d9a298bb9d3e436d9c1dc3a6342b64f144356d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 5 Nov 2018 12:42:51 +1100 Subject: [PATCH] AP_SmartRTL: stop constructing/copying Bitmask --- libraries/AP_SmartRTL/AP_SmartRTL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_SmartRTL/AP_SmartRTL.h b/libraries/AP_SmartRTL/AP_SmartRTL.h index de8281f675..e47ce14217 100644 --- a/libraries/AP_SmartRTL/AP_SmartRTL.h +++ b/libraries/AP_SmartRTL/AP_SmartRTL.h @@ -200,7 +200,7 @@ private: simplify_start_finish_t* stack; uint16_t stack_max; // maximum number of elements in the _simplify_stack array uint16_t stack_count; // number of elements in _simplify_stack array - Bitmask bitmask = Bitmask(SMARTRTL_POINTS_MAX); // simplify algorithm clears bits for each point that can be removed + Bitmask bitmask{SMARTRTL_POINTS_MAX}; // simplify algorithm clears bits for each point that can be removed } _simplify; // Pruning