summaryrefslogtreecommitdiff
path: root/src/mongo/base/initializer_context.h
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-06-03 13:51:01 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-11 01:11:50 +0000
commitc08a726e61157ae501c28cf7e222e16d49954fbf (patch)
tree50e0cdc58f93a42dcba3a594051f9def44c457b8 /src/mongo/base/initializer_context.h
parentf664f948ad0876f0537958cb5ab29a857f1e4924 (diff)
downloadmongo-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.h17
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