Closed Bug 1542646 Opened 5 years ago Closed 5 years ago

Fix issues found by mach static-analysis check

Categories

(Core :: SVG, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: longsonr, Assigned: longsonr)

Details

Attachments

(12 files, 1 obsolete file)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
No description provided.
Assignee: nobody → longsonr
Keywords: leave-open

Part 2 is

cd dom/svg
sed -i "" "s|() {}|() = default;|" *.h

with a couple of changes reverted

Priority: -- → P3
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fe062eac74d9
Part 1 - Correct namespace of forward declaration of DOMSVGAnimatedPreserveAspectRatio r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/323ed046cecd
Part 2 - Use default keyword instead of empty constructors and destructors r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1f3de2533c4a
Part 3 - forward declaration of DOMSVGAnimatedNumberList is in the wrong namespace r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/550e2e142615
Part 4 - use nullptr rather than NULL r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f612b35ee514
Part 5 - don't use instance variables to access static methods r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c506542937a1
Part 6 - pass by reference when it's more efficient r=dholbert

Part 8 is mechanical i.e.

sed -i "" "s/std::move(atts)/atts/" SVGFE*.cpp

Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/323cc63a9c2d
Part 7 - use default keyword where possible r=dholbert
Attachment #9058079 - Attachment is obsolete: true
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9bb46f41277c
Part 9 - Fix else after return r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8f243d937420
Part 10 - simplify boolean logic r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9fc36dfcb6cf
Part 11 - add explicit to constructor r=dholbert
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3638ca566d88
Part 11 - add explicit to constructor r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/12a4b6b72645
Part 12 - avoid implicit double to float conversions by using std:: variants of mathematical functions r=dholbert
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1181d18ea08c
Part 13 - Make function declaration and definition parameter names match r=dholbert

I've not fixed everything but this is probably enough for one bug.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: