Closed
Bug 1379826
Opened 7 years ago
Closed 7 years ago
Use static_cast instead of a C style cast in APZ keyboard logs
Categories
(Core :: Panning and Zooming, enhancement, P3)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: rhunt, Assigned: rhunt)
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
Just a small clean up, I think static_cast makes more sense.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8885013 [details] Bug 1379826 - Use static_cast instead of a C style cast in APZ keyboard logs. https://reviewboard.mozilla.org/r/155838/#review161016 r+ with the compiler error fixed ::: gfx/layers/apz/src/FocusState.cpp:49 (Diff revision 1) > const FocusTarget& aState) > { > FS_LOG("Update with rlt=%" PRIu64 ", olt=%" PRIu64 ", ft=(%d, %" PRIu64 ")\n", > aRootLayerTreeId, > aOriginatingLayersId, > - (int)aState.mType, > + static_cast<int>(intaState.mType), There's a compiler error on this line (a spurious "int")
Attachment #8885013 -
Flags: review?(botond) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Ah, I compiled it, but without FS_LOG defined so it ate the error. That confused me for a bit. Good catch.
Pushed by rhunt@eqrion.net: https://hg.mozilla.org/integration/mozilla-inbound/rev/450d0250f58c Use static_cast instead of a C style cast in APZ keyboard logs. r=botond
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/450d0250f58c
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•