From f432f7836a3ec2368260a51d352188e465d9c0cc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 26 Jan 2018 09:53:08 +0100 Subject: CLion pedantry Fix few of the inspection warnings from CLion that make any sense at all. --- spline/spline-widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spline') diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index c578d70d..b797a907 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -534,7 +534,7 @@ void spline_widget::show_tooltip(const QPoint& pos, const QPointF& value_) const bool is_fusion = QStringLiteral("fusion") == QApplication::style()->objectName(); const int add_x = (is_fusion ? 25 : 0), add_y = (is_fusion ? 15 : 0); - const QPoint pix(int(pos.x()) + add_x, int(pos.y()) + add_y); + const QPoint pix(pos.x() + add_x, pos.y() + add_y); QToolTip::showText(mapToGlobal(pix), QStringLiteral("value: %1x%2").arg(x, 0, 'f', 2).arg(y, 0, 'f', 2), -- cgit v1.2.3