From 2f572228581efabdebf43cbbd7d6885fc4ed47f8 Mon Sep 17 00:00:00 2001 From: Valentin Balaschenko <13349202+vlntb@users.noreply.github.com> Date: Mon, 2 Jun 2025 12:15:16 +0100 Subject: [PATCH] fix --- src/xrpld/core/detail/LRUMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrpld/core/detail/LRUMap.h b/src/xrpld/core/detail/LRUMap.h index da731ca910..772ea36b8f 100644 --- a/src/xrpld/core/detail/LRUMap.h +++ b/src/xrpld/core/detail/LRUMap.h @@ -50,7 +50,7 @@ public: std::size_t excess = (data_.size() + 1) - capacity_; for (std::size_t i = 0; i < excess; ++i) { - Key const& lru = usage_list_.back(); + auto lru = usage_list_.back(); usage_list_.pop_back(); data_.erase(lru); }