diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-12-15 23:13:44 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-12-20 09:23:55 +0300 |
commit | 6b7816e22beb74624675c22145032c4767cb1cda (patch) | |
tree | 7d79eade82e8f19ab5cdd008dfc0aed31df2438e /src/node_options-inl.h | |
parent | e5966ef60c24609c1bd716742836dc40be64db0b (diff) |
src: mark options parsers as const
These do not change their contents after being constructed.
PR-URL: https://github.com/nodejs/node/pull/25065
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_options-inl.h')
-rw-r--r-- | src/node_options-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_options-inl.h b/src/node_options-inl.h index 8aaa62524b8..d25557e6a50 100644 --- a/src/node_options-inl.h +++ b/src/node_options-inl.h @@ -201,7 +201,7 @@ auto OptionsParser<Options>::Convert( template <typename Options> template <typename ChildOptions> void OptionsParser<Options>::Insert( - OptionsParser<ChildOptions>* child_options_parser, + const OptionsParser<ChildOptions>* child_options_parser, ChildOptions* (Options::* get_child)()) { aliases_.insert(child_options_parser->aliases_.begin(), child_options_parser->aliases_.end()); @@ -274,7 +274,7 @@ void OptionsParser<Options>::Parse( std::vector<std::string>* const v8_args, Options* const options, OptionEnvvarSettings required_env_settings, - std::vector<std::string>* const errors) { + std::vector<std::string>* const errors) const { ArgsInfo args(orig_args, exec_args); // The first entry is the process name. Make sure it ends up in the V8 argv, |