From f6f7280fe34fb38367305eb0f37b6d38538b8a65 Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Tue, 22 Feb 2022 19:20:49 +0100 Subject: [PATCH] AK: Explicitly move `value` String in SourceGenerator::set --- AK/SourceGenerator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/SourceGenerator.h b/AK/SourceGenerator.h index 93c7158bd9d..53c6367b361 100644 --- a/AK/SourceGenerator.h +++ b/AK/SourceGenerator.h @@ -37,7 +37,7 @@ public: SourceGenerator fork() { return SourceGenerator { m_builder, m_mapping, m_opening, m_closing }; } - void set(StringView key, String value) { m_mapping.set(key, value); } + void set(StringView key, String value) { m_mapping.set(key, move(value)); } String get(StringView key) const { auto result = m_mapping.get(key);