diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-06-03 13:51:01 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-11 01:11:50 +0000 |
commit | c08a726e61157ae501c28cf7e222e16d49954fbf (patch) | |
tree | 50e0cdc58f93a42dcba3a594051f9def44c457b8 /src/mongo/idl | |
parent | f664f948ad0876f0537958cb5ab29a857f1e4924 (diff) | |
download | mongo-c08a726e61157ae501c28cf7e222e16d49954fbf.tar.gz |
SERVER-48367 Remove all _envp usage
Diffstat (limited to 'src/mongo/idl')
-rw-r--r-- | src/mongo/idl/config_option_test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/idl/config_option_test.cpp b/src/mongo/idl/config_option_test.cpp index 3b7509a38b1..78bdf0df513 100644 --- a/src/mongo/idl/config_option_test.cpp +++ b/src/mongo/idl/config_option_test.cpp @@ -47,7 +47,7 @@ bool gEnableTestConfigOpt15 = false; namespace { Status parseArgv(const std::vector<std::string>& argv, moe::Environment* parsed) { - auto status = moe::OptionsParser().run(moe::startupOptions, argv, {}, parsed); + auto status = moe::OptionsParser().run(moe::startupOptions, argv, parsed); if (!status.isOK()) { return status; } @@ -55,7 +55,7 @@ Status parseArgv(const std::vector<std::string>& argv, moe::Environment* parsed) } Status parseConfig(const std::string& config, moe::Environment* parsed) { - auto status = moe::OptionsParser().runConfigFile(moe::startupOptions, config, {}, parsed); + auto status = moe::OptionsParser().runConfigFile(moe::startupOptions, config, parsed); if (!status.isOK()) { return status; } @@ -68,11 +68,11 @@ Status parseMixed(const std::vector<std::string>& argv, moe::OptionsParser mixedParser; moe::Environment conf; - uassertStatusOK(mixedParser.runConfigFile(moe::startupOptions, config, {}, &conf)); + uassertStatusOK(mixedParser.runConfigFile(moe::startupOptions, config, &conf)); uassertStatusOK(env->setAll(conf)); moe::Environment cli; - uassertStatusOK(mixedParser.run(moe::startupOptions, argv, {}, &cli)); + uassertStatusOK(mixedParser.run(moe::startupOptions, argv, &cli)); uassertStatusOK(env->setAll(cli)); return env->validate(); @@ -616,7 +616,7 @@ TEST(ConfigOptionNoInit, Opt1) { "Hello", }); moe::Environment parsed; - ASSERT_OK(moe::OptionsParser().run(options, argv, {}, &parsed)); + ASSERT_OK(moe::OptionsParser().run(options, argv, &parsed)); ASSERT_OK(parsed.validate()); ASSERT_OK(storeIDLTestConfigs(parsed)); |