Skip to content
Snippets Groups Projects
Commit a945da1b authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Rename buffer::add --> emplace

parent c991d42d
No related branches found
No related tags found
3 merge requests!39release after RAL,!38After 2nd RAL submission,!37Resolve "Follow core 420"
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment