From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 10 Jun 2023 14:41:39 -0700 Subject: [PATCH 02/13] Remove redundant move --- src/google/protobuf/extension_set.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/extension_set.h b/src/google/protobuf/extension_set.h index 0e6d0521104d7f721bdbad1dd593233b035c5b85..b5343689ef7c16442995746439bbe8928022c593 100644 --- a/src/google/protobuf/extension_set.h +++ b/src/google/protobuf/extension_set.h @@ -714,7 +714,7 @@ class PROTOBUF_EXPORT ExtensionSet { static KeyValueFunctor ForEach(Iterator begin, Iterator end, KeyValueFunctor func) { for (Iterator it = begin; it != end; ++it) func(it->first, it->second); - return std::move(func); + return func; } // Applies a functor to the pairs in sorted order.