mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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: https://github.com/nodejs/node/pull/34807 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
22e3ada0c1
commit
c3d337db5d
1 file changed
+2
-2
+2
-2
@@ -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_);
|
||||
|
||||
Reference in new issue
Block a user