summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-20 20:14:20 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-20 20:15:57 +0200
commit617b3f750e83b21d511798e85193d95097918e59 (patch)
tree924c347a8a4671f6d532f93ca5b4e8369b43fdb8
parent63198234437b77567c95ae15bace96d8305c3213 (diff)
downloadceph-617b3f750e83b21d511798e85193d95097918e59.tar.gz
cls_replica_log_types.h: pass const std::list<> by reference
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>
-rw-r--r--src/cls/replica_log/cls_replica_log_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cls/replica_log/cls_replica_log_types.h b/src/cls/replica_log/cls_replica_log_types.h
index acd55dde533..6056f8e4468 100644
--- a/src/cls/replica_log/cls_replica_log_types.h
+++ b/src/cls/replica_log/cls_replica_log_types.h
@@ -61,7 +61,7 @@ struct cls_replica_log_progress_marker {
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) {}