Pass const std::list<> parameter by refrence to
cls_replica_log_progress_marker().
From cppcheck:
[src/cls/replica_log/cls_replica_log_types.h:64]: (performance)
Function parameter 'b' should be passed by reference.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
position_time(time) {}
cls_replica_log_progress_marker(const string& entity, const string& marker,
const utime_t& time,
- const std::list<cls_replica_log_item_marker> b) :
+ const std::list<cls_replica_log_item_marker>& b) :
entity_id(entity), position_marker(marker),
position_time(time),
items(b) {}