From e71f7af1d619d02667c2bfb9f5fd0d925e534230 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Aug 2019 11:20:44 +0200 Subject: spline, video: get rid of needless casts --- spline/spline-widget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'spline') 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); -- cgit v1.2.3