Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
yashLadha committed Aug 17, 2020
commit f7f1c7194df8552a7b60aad345c6aaf9ade96a14
4 changes: 2 additions & 2 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down