From b1dcd8478b1a35f3ab83a7046b5b5f11b46e3191 Mon Sep 17 00:00:00 2001 From: maochongxin Date: Mon, 1 Aug 2022 17:34:46 +0800 Subject: [PATCH] remove needless std::move, for copy elision and avoid compilation warning --- utilities/persistent_cache/persistent_cache_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/persistent_cache/persistent_cache_util.h b/utilities/persistent_cache/persistent_cache_util.h index 33f0411d36..67061299a7 100644 --- a/utilities/persistent_cache/persistent_cache_util.h +++ b/utilities/persistent_cache/persistent_cache_util.h @@ -49,7 +49,7 @@ class BoundedQueue { T t = std::move(q_.front()); size_ -= t.Size(); q_.pop_front(); - return std::move(t); + return t; } size_t Size() const {