Kernel: Remove superfluous moves in CommandLine.cpp

This commit is contained in:
Hendiadyoin1 2021-12-29 00:42:39 +01:00 committed by Andreas Kling
parent b1aee18078
commit 1db53400ce
Notes: sideshowbarker 2024-07-17 21:54:57 +09:00

View File

@ -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]);
}
}
}