Commit 00554310 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] pass method param by const reference instead of by object

this will suppress a cppcheck error:

okayed on jabber.
parent 93eddf78
......@@ -469,7 +469,7 @@ public:
/// @param leases Vector of pointers to leases
template <typename T>
void checkLeasesDifferent(const std::vector<T> leases) const {
void checkLeasesDifferent(const std::vector<T>& leases) const {
// Check they were created
for (int i = 0; i < leases.size(); ++i) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment