diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 11:20:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-08-01 11:20:44 +0200 |
commit | e71f7af1d619d02667c2bfb9f5fd0d925e534230 (patch) | |
tree | 3233779695f5f559e5392289a322bfb78a43dd3b /spline | |
parent | 4ffb8feee67856851351e972e33c72c025c2c29d (diff) |
spline, video: get rid of needless casts
Diffstat (limited to 'spline')
-rw-r--r-- | spline/spline-widget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index 96a22d95..0ae3766d 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -155,8 +155,7 @@ void spline_widget::drawFunction() moving_control_point_idx < points.size()) { const QPen pen(Qt::white, 1, Qt::SolidLine, Qt::FlatCap); - const QPointF prev_ = point_to_pixel({}); - QPointF prev(iround(prev_.x()), iround(prev_.y())); + QPointF prev = point_to_pixel({}); for (const auto& point : points) { const QPointF tmp = point_to_pixel(point); |