Kernel: Remove superfluous moves in CommandLine.cpp
This commit is contained in:
parent
b1aee18078
commit
1db53400ce
Notes:
sideshowbarker
2024-07-17 21:54:57 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/1db53400ce2 Pull-request: https://github.com/SerenityOS/serenity/pull/11475
1 changed files with 2 additions and 2 deletions
|
@ -70,9 +70,9 @@ UNMAP_AFTER_INIT void CommandLine::add_arguments(const Vector<StringView>& args)
|
|||
VERIFY(pair.size() == 2 || pair.size() == 1);
|
||||
|
||||
if (pair.size() == 1) {
|
||||
m_params.set(move(pair[0]), ""sv);
|
||||
m_params.set(pair[0], ""sv);
|
||||
} else {
|
||||
m_params.set(move(pair[0]), move(pair[1]));
|
||||
m_params.set(pair[0], pair[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue