AK: Explicitly move value
String in SourceGenerator::set
This commit is contained in:
parent
14caecefb1
commit
f6f7280fe3
Notes:
sideshowbarker
2024-07-17 16:36:53 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/f6f7280fe3 Pull-request: https://github.com/SerenityOS/serenity/pull/12735 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue