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/base/initializer_context.h | |
parent | f664f948ad0876f0537958cb5ab29a857f1e4924 (diff) | |
download | mongo-c08a726e61157ae501c28cf7e222e16d49954fbf.tar.gz |
SERVER-48367 Remove all _envp usage
Diffstat (limited to 'src/mongo/base/initializer_context.h')
-rw-r--r-- | src/mongo/base/initializer_context.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/mongo/base/initializer_context.h b/src/mongo/base/initializer_context.h index 12a6fd23f3a..9ba23d69441 100644 --- a/src/mongo/base/initializer_context.h +++ b/src/mongo/base/initializer_context.h @@ -42,26 +42,15 @@ namespace mongo { * See mongo/base/initializer.h and mongo/base/initializer_dependency_graph.h for more details. */ class InitializerContext { - InitializerContext(const InitializerContext&) = delete; - InitializerContext& operator=(const InitializerContext&) = delete; - public: - typedef std::vector<std::string> ArgumentVector; - typedef std::map<std::string, std::string> EnvironmentMap; - - InitializerContext(const ArgumentVector& args, const EnvironmentMap& env) - : _args(args), _env(env) {} + explicit InitializerContext(std::vector<std::string> args) : _args(std::move(args)) {} - const ArgumentVector& args() const { + const std::vector<std::string>& args() const { return _args; } - const EnvironmentMap& env() const { - return _env; - } private: - ArgumentVector _args; - EnvironmentMap _env; + std::vector<std::string> _args; }; } // namespace mongo |