diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-02-14 18:12:43 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-18 07:43:22 +0300 |
commit | c3d889182b0c958e922aec96e3aab43766884536 (patch) | |
tree | df09fb66d061fb80a25e51b9d66a92cd3661eac2 /src/node_api.cc | |
parent | 77b39c2eb2c9fe437d0e09e3e7682564d815c7fb (diff) |
src: apply clang-tidy rule modernize-use-override
PR-URL: https://github.com/nodejs/node/pull/26103
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_api.cc')
-rw-r--r-- | src/node_api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_api.cc b/src/node_api.cc index 282ef255dca..4e1a779c42e 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -134,7 +134,7 @@ class ThreadSafeFunction : public node::AsyncResource { env->Ref(); } - ~ThreadSafeFunction() { + ~ThreadSafeFunction() override { node::RemoveEnvironmentCleanupHook(env->isolate, Cleanup, this); env->Unref(); } @@ -839,7 +839,7 @@ class Work : public node::AsyncResource, public node::ThreadPoolWork { _complete(complete) { } - virtual ~Work() { } + ~Work() override { } public: static Work* New(node_napi_env env, |