diff --git a/tests/cpp/lp_namer/ProblemGenerationExeOptionsTest.cpp b/tests/cpp/lp_namer/ProblemGenerationExeOptionsTest.cpp index eea39cf736..9be973ae56 100644 --- a/tests/cpp/lp_namer/ProblemGenerationExeOptionsTest.cpp +++ b/tests/cpp/lp_namer/ProblemGenerationExeOptionsTest.cpp @@ -98,9 +98,9 @@ TEST_F(ProblemGenerationExeOptionsTest, const char argv0[] = "lp.exe "; const char argv1[] = "--archive"; - auto argv2 = archive; + const auto& argv2 = archive; - std::vector ppargv = {argv0, argv1, argv2.c_str()}; + std::vector ppargv{argv0, argv1, argv2.c_str()}; problem_generation_options_parser_.Parse(3, ppargv.data()); ProblemGenerationSpyAndMock pbg(problem_generation_options_parser_);