From f7f1c7194df8552a7b60aad345c6aaf9ade96a14 Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Mon, 17 Aug 2020 15:09:53 +0530 Subject: [PATCH] src: usage of modernize-use-equals-default Update the destructor and constructor calls to use the default member function. This will bascially enables the compiler to do better optimization as the functions as explicitly defined as trivial. Explanation can be obtained at: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html --- src/node_file.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index 4c368abb064fe1..247c1c530428e8 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -126,9 +126,9 @@ void FSContinuationData::MemoryInfo(MemoryTracker* tracker) const { tracker->TrackField("paths", paths_); } -FileHandleReadWrap::~FileHandleReadWrap() {} +FileHandleReadWrap::~FileHandleReadWrap() = default; -FSReqBase::~FSReqBase() {} +FSReqBase::~FSReqBase() = default; void FSReqBase::MemoryInfo(MemoryTracker* tracker) const { tracker->TrackField("continuation_data", continuation_data_);