CID 717031: Big parameter passed by value (PASS_BY_VALUE)
At (1): Passing parameter k of type LogEntryKey (size 168 bytes) by value.
Signed-off-by: Sage Weil <sage@inktank.com>
while (tail.size() > 50)
tail.pop_front();
}
- bool contains(LogEntryKey k) const {
+ bool contains(const LogEntryKey& k) const {
for (list<LogEntry>::const_iterator p = tail.begin();
p != tail.end();
p++)
- if (p->key() == k) return true;
+ if (p->key() == k)
+ return true;
return false;
}