James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Johnson <johnson.peter@gmail.com> |
| 3 | Date: Sat, 10 Jun 2023 14:41:39 -0700 |
Maxwell Henderson | 80bec32 | 2024-01-09 15:48:44 -0800 | [diff] [blame^] | 4 | Subject: [PATCH 02/12] Remove redundant move |
James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame] | 5 | |
| 6 | --- |
| 7 | src/google/protobuf/extension_set.h | 2 +- |
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 | |
| 10 | diff --git a/src/google/protobuf/extension_set.h b/src/google/protobuf/extension_set.h |
| 11 | index 0e6d0521104d7f721bdbad1dd593233b035c5b85..b5343689ef7c16442995746439bbe8928022c593 100644 |
| 12 | --- a/src/google/protobuf/extension_set.h |
| 13 | +++ b/src/google/protobuf/extension_set.h |
| 14 | @@ -714,7 +714,7 @@ class PROTOBUF_EXPORT ExtensionSet { |
| 15 | static KeyValueFunctor ForEach(Iterator begin, Iterator end, |
| 16 | KeyValueFunctor func) { |
| 17 | for (Iterator it = begin; it != end; ++it) func(it->first, it->second); |
| 18 | - return std::move(func); |
| 19 | + return func; |
| 20 | } |
| 21 | |
| 22 | // Applies a functor to the <int, Extension&> pairs in sorted order. |