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/inspector | |
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/inspector')
-rw-r--r-- | src/inspector/main_thread_interface.h | 4 | ||||
-rw-r--r-- | src/inspector/worker_inspector.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/inspector/main_thread_interface.h b/src/inspector/main_thread_interface.h index e3f2a7fb163..9a48192cd37 100644 --- a/src/inspector/main_thread_interface.h +++ b/src/inspector/main_thread_interface.h @@ -26,12 +26,12 @@ class MainThreadInterface; class Request { public: virtual void Call(MainThreadInterface*) = 0; - virtual ~Request() {} + virtual ~Request() = default; }; class Deletable { public: - virtual ~Deletable() {} + virtual ~Deletable() = default; }; std::unique_ptr<v8_inspector::StringBuffer> Utf8ToStringView( diff --git a/src/inspector/worker_inspector.h b/src/inspector/worker_inspector.h index c1d3b8a5711..9f5604e79ab 100644 --- a/src/inspector/worker_inspector.h +++ b/src/inspector/worker_inspector.h @@ -21,7 +21,7 @@ class WorkerDelegate { const std::string& url, bool waiting, std::shared_ptr<MainThreadHandle> worker) = 0; - virtual ~WorkerDelegate() {} + virtual ~WorkerDelegate() = default; }; class WorkerManagerEventHandle { |