Skip to content

Commit 7666d95

Browse files
yashLadhaBethGriggs
authored andcommitted
src: usage of modernize-use-equals-default
Update the destructor and constructor calls to use the default member function. This will bascially enable the compiler to do better optimization as the functions as explicitly defined as trivial. Refs: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html PR-URL: #34807 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent bf7f492 commit 7666d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_file.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ void FSContinuationData::MemoryInfo(MemoryTracker* tracker) const {
126126
tracker->TrackField("paths", paths_);
127127
}
128128

129-
FileHandleReadWrap::~FileHandleReadWrap() {}
129+
FileHandleReadWrap::~FileHandleReadWrap() = default;
130130

131-
FSReqBase::~FSReqBase() {}
131+
FSReqBase::~FSReqBase() = default;
132132

133133
void FSReqBase::MemoryInfo(MemoryTracker* tracker) const {
134134
tracker->TrackField("continuation_data", continuation_data_);

0 commit comments

Comments
 (0)