From 0e8beab7bfb99fceba249cd33918d0241180ec1e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 10 Sep 2021 20:10:49 +0200 Subject: [PATCH] lru: Make parameter const-ref This has no effect here, but it's used in the tests, where the override is constref. --- src/lru.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lru.h b/src/lru.h index 3df78ed59..c1f01c96b 100644 --- a/src/lru.h +++ b/src/lru.h @@ -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); }