diff options
author | Hendiadyoin1 <leon2002.la@gmail.com> | 2022-02-22 19:20:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-28 23:08:08 +0200 |
commit | f6f7280fe34fb38367305eb0f37b6d38538b8a65 (patch) | |
tree | 7c7df4f1ff6b220b14ff30721582cddd3130f430 | |
parent | 14caecefb11f716358ced133cb29cd9f12fa5e63 (diff) | |
download | serenity-f6f7280fe34fb38367305eb0f37b6d38538b8a65.zip |
AK: Explicitly move `value` String in SourceGenerator::set
-rw-r--r-- | AK/SourceGenerator.h | 2 |
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); |