diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-04-16 18:20:38 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-24 20:32:43 +0300 |
commit | 51079db826601425f4364a010a6468d734519d95 (patch) | |
tree | 740aa107c5aedea080ed33911ad0796ce7d7f806 /src/node_options.h | |
parent | a763de137ceb81a19a2446b0f7286c4a309c27e4 (diff) |
src: apply clang-tidy rule modernize-use-equals-default
PR-URL: https://github.com/nodejs/node/pull/27264
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/node_options.h')
-rw-r--r-- | src/node_options.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_options.h b/src/node_options.h index f9226156900..3b2513a183b 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -47,7 +47,7 @@ class HostPort { class Options { public: virtual void CheckOptions(std::vector<std::string>* errors) {} - virtual ~Options() {} + virtual ~Options() = default; }; // These options are currently essentially per-Environment, but it can be nice @@ -240,7 +240,7 @@ enum OptionType { template <typename Options> class OptionsParser { public: - virtual ~OptionsParser() {} + virtual ~OptionsParser() = default; typedef Options TargetType; @@ -338,7 +338,7 @@ class OptionsParser { // Represents a field within `Options`. class BaseOptionField { public: - virtual ~BaseOptionField() {} + virtual ~BaseOptionField() = default; virtual void* LookupImpl(Options* options) const = 0; template <typename T> |