summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2022-02-22 19:20:49 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-28 23:08:08 +0200
commitf6f7280fe34fb38367305eb0f37b6d38538b8a65 (patch)
tree7c7df4f1ff6b220b14ff30721582cddd3130f430
parent14caecefb11f716358ced133cb29cd9f12fa5e63 (diff)
downloadserenity-f6f7280fe34fb38367305eb0f37b6d38538b8a65.zip
AK: Explicitly move `value` String in SourceGenerator::set
-rw-r--r--AK/SourceGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/SourceGenerator.h b/AK/SourceGenerator.h
index 93c7158bd9..53c6367b36 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);