aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4qmlcontext.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-17 16:21:19 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-19 19:05:22 +0100
commit0c066168bbbd230abe875727b2000d6828b03f23 (patch)
tree2a927708edc62e2022d0093dd264206761d29066 /src/qml/jsruntime/qv4qmlcontext.cpp
parent02c6e7bc3aca42a188b772aa9794b919e60017e7 (diff)
QQuickFlickable: Avoid casting and rounding
The reportedVelocitySmoothing variable is never changed, and only used as a parameter that is an int. So declare it as a const int instead of qreal, and pass a floating-type zero for the destination parameter that is of type qreal. Fixes static analzyer warning 8e9457b62b3d1ff06f55ca46ba0e70ef Change-Id: Ie9226a107dfaaf937d126833f8ba2786ac3d1e6b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4qmlcontext.cpp')
0 files changed, 0 insertions, 0 deletions