mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
Kernel: Remove superfluous moves in CommandLine.cpp
This commit is contained in:
committed by
Andreas Kling
parent
b1aee18078
commit
1db53400ce
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user