Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d953fa3

Browse filesBrowse files
yashLadhaaddaleax
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 <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>
1 parent c059d3d commit d953fa3
Copy full SHA for d953fa3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎src/node_file.cc‎

Copy file name to clipboardExpand all lines: src/node_file.cc
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.