Enable clang tidy/warnings for tests
[alexxy/gromacs.git] / src / testutils / interactivetest.cpp
index 0944b066dbbd545b75e322f74528cd29551bbe6a..5874e9dc9160b2bb624f7a5fe45fdf93aa8f365c 100644 (file)
@@ -44,6 +44,7 @@
 #include "interactivetest.h"
 
 #include <string>
+#include <utility>
 
 #include <gmock/gmock.h>
 #include <gtest/gtest.h>
@@ -83,7 +84,7 @@ class InteractiveTestHelper::Impl
 {
     public:
         explicit Impl(TestReferenceChecker checker)
-            : checker_(checker), bLastNewline_(true),
+            : checker_(std::move(checker)), bLastNewline_(true),
               currentLine_(0), bHasOutput_(false)
         {
             using ::testing::_;