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
This commit is contained in:
Sylvestre Ledru
2023-10-15 15:29:02 +00:00
parent 23f066a634
commit b0fe72dee5
212 changed files with 241 additions and 524 deletions

View File

@@ -2293,10 +2293,7 @@ class nsPrefLocalizedString final : public nsIPrefLocalizedString {
//----------------------------------------------------------------------------
nsPrefBranch::nsPrefBranch(const char* aPrefRoot, PrefValueKind aKind)
: mPrefRoot(aPrefRoot),
mKind(aKind),
mFreeingObserverList(false),
mObservers() {
: mPrefRoot(aPrefRoot), mKind(aKind), mFreeingObserverList(false) {
nsCOMPtr<nsIObserverService> observerService = services::GetObserverService();
if (observerService) {
++mRefCnt; // must be > 0 when we call this, or we'll get deleted!