mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 01:55:07 +00:00
AK: Explicitly move value
String in SourceGenerator::set
This commit is contained in:
parent
14caecefb1
commit
f6f7280fe3
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue