Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit cc8a0ee

Browse files
committed
Bug 1856795 - Remove redundant member init r=emilio
Done with: ./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix . https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html Differential Revision: https://phabricator.services.mozilla.com/D190002
1 parent be37bd9 commit cc8a0ee

File tree

212 files changed

+241
-524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+241
-524
lines changed

accessible/atk/ApplicationAccessibleWrap.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ using namespace mozilla::a11y;
1717

1818
// ApplicationAccessibleWrap
1919

20-
ApplicationAccessibleWrap::ApplicationAccessibleWrap()
21-
: ApplicationAccessible() {}
20+
ApplicationAccessibleWrap::ApplicationAccessibleWrap() {}
2221

2322
ApplicationAccessibleWrap::~ApplicationAccessibleWrap() {
2423
AccessibleWrap::ShutdownAtkObject();

accessible/atk/RootAccessibleWrap.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
using namespace mozilla::a11y;
1515

16-
GtkWindowAccessible::GtkWindowAccessible(AtkObject* aAccessible)
17-
: DummyAccessible() {
16+
GtkWindowAccessible::GtkWindowAccessible(AtkObject* aAccessible) {
1817
g_object_ref(aAccessible);
1918
mAtkObject = aAccessible;
2019
}

accessible/base/nsAccessibilityService.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,7 @@ xpcAccessibleApplication* nsAccessibilityService::gXPCApplicationAccessible =
397397
uint32_t nsAccessibilityService::gConsumers = 0;
398398

399399
nsAccessibilityService::nsAccessibilityService()
400-
: DocManager(),
401-
FocusManager(),
402-
mHTMLMarkupMap(ArrayLength(sHTMLMarkupMapList)),
400+
: mHTMLMarkupMap(ArrayLength(sHTMLMarkupMapList)),
403401
mMathMLMarkupMap(ArrayLength(sMathMLMarkupMapList)),
404402
mXULMarkupMap(ArrayLength(sXULMarkupMapList)) {}
405403

accessible/generic/LocalAccessible.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,10 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(LocalAccessible)
101101
NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_DESTROY(LocalAccessible, LastRelease())
102102

103103
LocalAccessible::LocalAccessible(nsIContent* aContent, DocAccessible* aDoc)
104-
: Accessible(),
105-
mContent(aContent),
104+
: mContent(aContent),
106105
mDoc(aDoc),
107106
mParent(nullptr),
108107
mIndexInParent(-1),
109-
mBounds(),
110108
mFirstLineStart(-1),
111109
mStateFlags(0),
112110
mContextFlags(0),

accessible/ipc/RemoteAccessible.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ class RemoteAccessible : public Accessible, public HyperTextAccessibleBase {
413413
}
414414

415415
explicit RemoteAccessible(DocAccessibleParent* aThisAsDoc)
416-
: Accessible(),
417-
mParent(kNoParent),
416+
: mParent(kNoParent),
418417
mDoc(aThisAsDoc),
419418
mWrapper(0),
420419
mID(0),

devtools/shared/heapsnapshot/tests/gtest/DeserializedStackFrameUbiStackFrames.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ using testing::ReturnRef;
1818

1919
// A mock DeserializedStackFrame for testing.
2020
struct MockDeserializedStackFrame : public DeserializedStackFrame {
21-
MockDeserializedStackFrame() : DeserializedStackFrame() {}
21+
MockDeserializedStackFrame() {}
2222
};
2323

2424
DEF_TEST(DeserializedStackFrameUbiStackFrames, {

devtools/shared/heapsnapshot/tests/gtest/DevTools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class MOZ_STACK_CLASS FakeNode {
9999
JS::Zone* zone;
100100
size_t size;
101101

102-
explicit FakeNode() : edges(), compartment(nullptr), zone(nullptr), size(1) {}
102+
explicit FakeNode() : compartment(nullptr), zone(nullptr), size(1) {}
103103
};
104104

105105
namespace JS {

docshell/base/nsDocShellLoadState.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ nsDocShellLoadState::nsDocShellLoadState(nsIURI* aURI, uint64_t aLoadIdentifier)
222222
mOriginalFrameSrc(false),
223223
mIsFormSubmission(false),
224224
mLoadType(LOAD_NORMAL),
225-
mTarget(),
226225
mSrcdocData(VoidString()),
227226
mLoadFlags(0),
228227
mInternalLoadFlags(0),

dom/animation/Animation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ void Animation::UpdatePendingAnimationTracker(AnimationTimeline* aOldTimeline,
20512051
class AsyncFinishNotification : public MicroTaskRunnable {
20522052
public:
20532053
explicit AsyncFinishNotification(Animation* aAnimation)
2054-
: MicroTaskRunnable(), mAnimation(aAnimation) {}
2054+
: mAnimation(aAnimation) {}
20552055

20562056
virtual void Run(AutoSlowOperation& aAso) override {
20572057
mAnimation->DoFinishNotificationImmediately(this);

dom/base/FragmentOrElement.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ size_t nsIContent::nsExtendedContentSlots::SizeOfExcludingThis(
559559
return 0;
560560
}
561561

562-
FragmentOrElement::nsDOMSlots::nsDOMSlots()
563-
: nsIContent::nsContentSlots(), mDataset(nullptr) {
562+
FragmentOrElement::nsDOMSlots::nsDOMSlots() : mDataset(nullptr) {
564563
MOZ_COUNT_CTOR(nsDOMSlots);
565564
}
566565

0 commit comments

Comments
 (0)