39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From 66e78f979c8826bb193c00a4ba744e3ce8774a8e Mon Sep 17 00:00:00 2001
|
|
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
|
|
Date: Thu, 19 Jan 2023 09:24:27 -0500
|
|
Subject: [PATCH] =?UTF-8?q?Remove=20std::move=E2=80=99s=20reported=20as=20?=
|
|
=?UTF-8?q?redundant=20by=20GCC=2013?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
src/gn/desc_builder.cc | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/gn/desc_builder.cc b/src/gn/desc_builder.cc
|
|
index 444a5e02..3ef170c3 100644
|
|
--- a/src/gn/desc_builder.cc
|
|
+++ b/src/gn/desc_builder.cc
|
|
@@ -167,7 +167,7 @@ class BaseDescBuilder {
|
|
base::ListValue res;
|
|
for (const auto& v : vector)
|
|
res.GetList().emplace_back(ToBaseValue(v));
|
|
- return std::move(res);
|
|
+ return res;
|
|
}
|
|
|
|
base::Value ToBaseValue(const Scope* scope) {
|
|
@@ -176,7 +176,7 @@ class BaseDescBuilder {
|
|
scope->GetCurrentScopeValues(&map);
|
|
for (const auto& v : map)
|
|
res.SetKey(v.first, ToBaseValue(v.second));
|
|
- return std::move(res);
|
|
+ return res;
|
|
}
|
|
|
|
base::Value ToBaseValue(const Value& val) {
|
|
--
|
|
2.39.0
|
|
|