Closed
Bug 1405935
Opened 7 years ago
Closed 7 years ago
Restyle nsPref*.cpp
Categories
(Core :: Preferences: Backend, enhancement)
Core
Preferences: Backend
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(2 files)
Following on from bug 1405908... Process: - Patch 1: Run clang-format to fix whitespace. - Patch 2: Do manual fix-ups -- braces, rename things, etc. -- and then finish with another clang-format. - Squash the patches together before landing.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8915456 [details] Bug 1405935 - Restyle nsPref*.cpp (clang-format). . https://reviewboard.mozilla.org/r/186656/#review191702 C/C++ static analysis found 4 defects in this patch. You can run this analysis locally with: `./mach static-analysis check path/to/file.cpp` If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx ::: modules/libpref/nsPrefBranch.cpp:949 (Diff revision 1) > > //---------------------------------------------------------------------------- > // nsPrefLocalizedString > //---------------------------------------------------------------------------- > > -nsPrefLocalizedString::nsPrefLocalizedString() > +nsPrefLocalizedString::nsPrefLocalizedString() {} Warning: Use '= default' to define a trivial default constructor [clang-tidy: modernize-use-equals-default] nsPrefLocalizedString::nsPrefLocalizedString() {} ^ = default; ::: modules/libpref/nsPrefBranch.cpp:951 (Diff revision 1) > - > -nsPrefLocalizedString::~nsPrefLocalizedString() > -{ > -} > > +nsPrefLocalizedString::~nsPrefLocalizedString() {} Warning: Use '= default' to define a trivial destructor [clang-tidy: modernize-use-equals-default] nsPrefLocalizedString::~nsPrefLocalizedString() {} ^ = default; ::: modules/libpref/nsPrefBranch.cpp:1014 (Diff revision 1) > // nsRelativeFilePref > //---------------------------------------------------------------------------- > > NS_IMPL_ISUPPORTS(nsRelativeFilePref, nsIRelativeFilePref) > > -nsRelativeFilePref::nsRelativeFilePref() > +nsRelativeFilePref::nsRelativeFilePref() {} Warning: Use '= default' to define a trivial default constructor [clang-tidy: modernize-use-equals-default] nsRelativeFilePref::nsRelativeFilePref() {} ^ = default; ::: modules/libpref/nsPrefBranch.cpp:1016 (Diff revision 1) > > -nsRelativeFilePref::nsRelativeFilePref() > +nsRelativeFilePref::nsRelativeFilePref() {} > -{ > -} > > -nsRelativeFilePref::~nsRelativeFilePref() > +nsRelativeFilePref::~nsRelativeFilePref() {} Warning: Use '= default' to define a trivial destructor [clang-tidy: modernize-use-equals-default] nsRelativeFilePref::~nsRelativeFilePref() {} ^ = default;
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8915457 [details] Bug 1405935 - Restyle nsPref*.cpp (manual). . https://reviewboard.mozilla.org/r/186658/#review191986
Attachment #8915457 -
Flags: review?(felipc) → review+
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8915456 [details] Bug 1405935 - Restyle nsPref*.cpp (clang-format). . https://reviewboard.mozilla.org/r/186656/#review191988 Let's also do the changes suggested by the static analysis bot
Attachment #8915456 -
Flags: review?(felipc) → review+
Pushed by nnethercote@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/c2658a2ad200 Restyle nsPref*.cpp. r=felipe.
Assignee | ||
Comment 7•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c2658a2ad2001806d2fbc15d9203643f5a7926f3 Bug 1405935 - Restyle nsPref*.cpp. r=felipe.
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c2658a2ad200
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Assignee | ||
Updated•7 years ago
|
Blocks: prefs-cleanup
Updated•6 years ago
|
Assignee: nobody → n.nethercote
You need to log in
before you can comment on or make changes to this bug.
Description
•