mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
23 lines
946 B
Diff
23 lines
946 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Peter Johnson <johnson.peter@gmail.com>
|
|
Date: Sat, 10 Jun 2023 14:41:39 -0700
|
|
Subject: [PATCH 02/14] 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 <int, Extension&> pairs in sorted order.
|