Skip to content

Commit

Permalink
Bug 1856795 - ride along: use = default; on some recently modified fi…
Browse files Browse the repository at this point in the history
…les r=emilio

More on:
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html

Command:
L=$(hg export -r tip|grep +++|cut -d/ -f2-)
./mach static-analysis check --checks="-*, modernize-use-equals-default" --fix $L

Differential Revision: https://phabricator.services.mozilla.com/D191016

UltraBlame original commit: aba20bc488e22880b8ef5a89916ecabb51cee798
  • Loading branch information
marco-c committed Oct 16, 2023
1 parent d6e8b94 commit 5ecfe1a
Show file tree
Hide file tree
Showing 39 changed files with 148 additions and 100 deletions.
5 changes: 3 additions & 2 deletions accessible/atk/ApplicationAccessibleWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ ApplicationAccessibleWrap
ApplicationAccessibleWrap
(
)
{
}
=
default
;
ApplicationAccessibleWrap
:
:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ DeserializedStackFrame
MockDeserializedStackFrame
(
)
{
}
=
default
;
}
;
DEF_TEST
Expand Down
5 changes: 3 additions & 2 deletions devtools/shared/heapsnapshot/tests/gtest/DevTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,9 @@ MockWriter
(
)
override
{
}
=
default
;
MOCK_METHOD2
(
writeNode
Expand Down
5 changes: 3 additions & 2 deletions dom/base/nsFrameMessageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8126,8 +8126,9 @@ public
nsAsyncMessageToSameProcessParent
(
)
{
}
=
default
;
nsresult
HandleMessage
(
Expand Down
5 changes: 3 additions & 2 deletions dom/base/nsGlobalWindowOuter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6503,8 +6503,9 @@ constexpr
nsChromeOuterWindowProxy
(
)
{
}
=
default
;
const
char
*
Expand Down
5 changes: 3 additions & 2 deletions dom/html/ConstraintValidation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ ConstraintValidation
ConstraintValidation
(
)
{
}
=
default
;
void
ConstraintValidation
:
Expand Down
5 changes: 3 additions & 2 deletions dom/ipc/SharedMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ SharedMap
SharedMap
(
)
{
}
=
default
;
SharedMap
:
:
Expand Down
5 changes: 3 additions & 2 deletions dom/media/gtest/TestWebMWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ public
TestWebMWriter
(
)
{
}
=
default
;
void
AppendDummyFrame
(
Expand Down
15 changes: 9 additions & 6 deletions dom/media/webrtc/sdp/SdpAttribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ virtual
SdpAttribute
(
)
{
}
=
default
;
virtual
SdpAttribute
*
Expand Down Expand Up @@ -4760,8 +4761,9 @@ virtual
Parameters
(
)
{
}
=
default
;
virtual
Parameters
*
Expand Down Expand Up @@ -5016,8 +5018,9 @@ virtual
RtxParameters
(
)
{
}
=
default
;
virtual
Parameters
*
Expand Down
5 changes: 3 additions & 2 deletions dom/media/webrtc/transport/stun_socket_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,9 @@ public
STUNUDPSocketFilter
(
)
{
}
=
default
;
NS_DECL_ISUPPORTS
NS_DECL_NSISOCKETFILTER
private
Expand Down
5 changes: 3 additions & 2 deletions dom/media/webrtc/transport/test/ice_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,9 @@ public
StunTest
(
)
{
}
=
default
;
void
SetUp
(
Expand Down
5 changes: 3 additions & 2 deletions gfx/2d/Path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ Super
PointD
(
)
{
}
=
default
;
PointD
(
double
Expand Down
5 changes: 3 additions & 2 deletions gfx/vr/service/PuppetSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ PuppetSession
PuppetSession
(
)
{
}
=
default
;
PuppetSession
:
:
Expand Down
10 changes: 6 additions & 4 deletions image/imgFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,9 @@ public
DrawableFrameRef
(
)
{
}
=
default
;
explicit
DrawableFrameRef
(
Expand Down Expand Up @@ -1324,8 +1325,9 @@ nullptr
RawAccessFrameRef
(
)
{
}
=
default
;
RawAccessFrameRef
&
operator
Expand Down
10 changes: 6 additions & 4 deletions ipc/chromium/src/base/histogram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2062,8 +2062,9 @@ SampleSet
SampleSet
(
)
{
}
=
default
;
void
Histogram
:
Expand Down Expand Up @@ -2347,8 +2348,9 @@ LinearHistogram
LinearHistogram
(
)
{
}
=
default
;
Histogram
*
LinearHistogram
Expand Down
10 changes: 6 additions & 4 deletions ipc/chromium/src/base/lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ public
Lock
(
)
{
}
=
default
;
~
Lock
(
)
{
}
=
default
;
void
Acquire
(
Expand Down
5 changes: 3 additions & 2 deletions js/src/builtin/TestingFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28185,8 +28185,9 @@ public
ShellAllocationMetadataBuilder
(
)
{
}
=
default
;
virtual
JSObject
*
Expand Down
10 changes: 6 additions & 4 deletions js/src/jit/RegisterSets.h
Original file line number Diff line number Diff line change
Expand Up @@ -2960,8 +2960,9 @@ public
AllocatableSetAccessors
(
)
{
}
=
default
;
explicit
constexpr
AllocatableSetAccessors
Expand Down Expand Up @@ -3348,8 +3349,9 @@ public
LiveSetAccessors
(
)
{
}
=
default
;
explicit
constexpr
LiveSetAccessors
Expand Down
5 changes: 3 additions & 2 deletions js/src/jsapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21147,8 +21147,9 @@ JSErrorNotes
JSErrorNotes
(
)
{
}
=
default
;
JSErrorNotes
:
:
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/SavedStacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,9 @@ AllocationMetadataBuilder
MetadataBuilder
(
)
{
}
=
default
;
virtual
JSObject
*
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/SharedImmutableStringsCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,9 @@ set
Inner
(
)
{
}
=
default
;
Inner
(
const
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/Stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,9 @@ public
NullFramePtr
(
)
{
}
=
default
;
}
;
enum
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/UbiNodeCensus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,9 @@ explicit
BucketCount
(
)
{
}
=
default
;
void
destructCount
(
Expand Down
5 changes: 3 additions & 2 deletions js/src/wasm/WasmTypeDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ public
FuncType
(
)
{
}
=
default
;
FuncType
(
ValTypeVector
Expand Down
10 changes: 6 additions & 4 deletions js/src/wasm/WasmValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,9 @@ public
LitVal
(
)
{
}
=
default
;
explicit
LitVal
(
Expand Down Expand Up @@ -1124,8 +1125,9 @@ public
Val
(
)
{
}
=
default
;
explicit
Val
(
Expand Down
5 changes: 3 additions & 2 deletions memory/replace/dmd/DMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4067,8 +4067,9 @@ AllocStackTrace
DeadBlock
(
)
{
}
=
default
;
size_t
ReqSize
(
Expand Down
Loading

0 comments on commit 5ecfe1a

Please sign in to comment.