Browse Source

Kernel: Remove superfluous moves in CommandLine.cpp

Hendiadyoin1 3 years ago
parent
commit
1db53400ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Kernel/CommandLine.cpp

+ 2 - 2
Kernel/CommandLine.cpp

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