@@ -281,7 +281,7 @@ class OptionsParser {
281
281
// a method that yields the target options type from this parser's options
282
282
// type.
283
283
template <typename ChildOptions>
284
- void Insert (OptionsParser<ChildOptions>* child_options_parser,
284
+ void Insert (const OptionsParser<ChildOptions>* child_options_parser,
285
285
ChildOptions* (Options::* get_child)());
286
286
287
287
// Parse a sequence of options into an options struct, a list of
@@ -306,7 +306,7 @@ class OptionsParser {
306
306
std::vector<std::string>* const v8_args,
307
307
Options* const options,
308
308
OptionEnvvarSettings required_env_settings,
309
- std::vector<std::string>* const errors);
309
+ std::vector<std::string>* const errors) const ;
310
310
311
311
private:
312
312
// We support the wide variety of different option types by remembering
@@ -397,28 +397,28 @@ class DebugOptionsParser : public OptionsParser<DebugOptions> {
397
397
public:
398
398
DebugOptionsParser ();
399
399
400
- static DebugOptionsParser instance;
400
+ static const DebugOptionsParser instance;
401
401
};
402
402
403
403
class EnvironmentOptionsParser : public OptionsParser <EnvironmentOptions> {
404
404
public:
405
405
EnvironmentOptionsParser ();
406
406
407
- static EnvironmentOptionsParser instance;
407
+ static const EnvironmentOptionsParser instance;
408
408
};
409
409
410
410
class PerIsolateOptionsParser : public OptionsParser <PerIsolateOptions> {
411
411
public:
412
412
PerIsolateOptionsParser ();
413
413
414
- static PerIsolateOptionsParser instance;
414
+ static const PerIsolateOptionsParser instance;
415
415
};
416
416
417
417
class PerProcessOptionsParser : public OptionsParser <PerProcessOptions> {
418
418
public:
419
419
PerProcessOptionsParser ();
420
420
421
- static PerProcessOptionsParser instance;
421
+ static const PerProcessOptionsParser instance;
422
422
};
423
423
424
424
} // namespace options_parser
0 commit comments