From a945da1bc91160eff89f8a332d910e96d5add627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Wed, 8 Dec 2021 17:38:42 +0100 Subject: [PATCH] Rename buffer::add --> emplace --- src/processor/processor_compass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/processor/processor_compass.cpp b/src/processor/processor_compass.cpp index 4ddbce358..d9e1ee1ea 100644 --- a/src/processor/processor_compass.cpp +++ b/src/processor/processor_compass.cpp @@ -50,7 +50,7 @@ void ProcessorCompass::processCapture(CaptureBasePtr _capture) // Otherwise: store capture // Note that more than one processor can be emplacing frames, so an older frame can arrive later than this one. else - buffer_capture_.add(_capture->getTimeStamp(), _capture); + buffer_capture_.emplace(_capture->getTimeStamp(), _capture); } void ProcessorCompass::processKeyFrame(FrameBasePtr _frame, const double& _time_tolerance) @@ -70,7 +70,7 @@ void ProcessorCompass::processKeyFrame(FrameBasePtr _frame, const double& _time_ else if (buffer_capture_.selectLastAfter(_frame->getTimeStamp(), _time_tolerance) == nullptr) { // store frame - buffer_frame_.add(_frame->getTimeStamp(), _frame); + buffer_frame_.emplace(_frame->getTimeStamp(), _frame); } // Otherwise: There are captures more recent than the frame but none that match with it -> discard frame } -- GitLab