// 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);
}