lru: Make parameter const-ref

This has no effect here, but it's used in the tests, where the
override is constref.
This commit is contained in:
Fabian Homborg 2021-09-10 20:10:49 +02:00
parent 4c5d586249
commit 0e8beab7bf

View file

@ -101,7 +101,7 @@ class lru_cache_t {
// CRTP callback for when a node is evicted.
// Clients can implement this
void entry_was_evicted(wcstring key, Contents value) {
void entry_was_evicted(const wcstring &key, Contents value) {
UNUSED(key);
UNUSED(value);
}