mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
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
@ -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…
Reference in New Issue
Block a user