AK: Explicitly move value String in SourceGenerator::set

This commit is contained in:
Hendiadyoin1 2022-02-22 19:20:49 +01:00 committed by Andreas Kling
parent 14caecefb1
commit f6f7280fe3

View file

@ -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);