Enable clang tidy/warnings for tests
[alexxy/gromacs.git] / src / testutils / cmdlinetest.cpp
index b88b3138bbb73bfbd8e14c873c58aadc2d9772a0..c2cdc40520734e132782066db68231deefa73f82 100644 (file)
@@ -319,8 +319,8 @@ int CommandLineTestHelper::runModuleDirect(
 
 // static
 int CommandLineTestHelper::runModuleFactory(
-        std::function<std::unique_ptr<ICommandLineOptionsModule>()>  factory,
-        CommandLine                                                 *commandLine)
+        const std::function<std::unique_ptr<ICommandLineOptionsModule>()> &factory,
+        CommandLine                                                       *commandLine)
 {
     return runModuleDirect(factory(), commandLine);
 }