diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 11:27:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 11:27:42 +0200 |
commit | 058f823f432484594a816b2489ea2edb2b56d5a4 (patch) | |
tree | 260f2c9319848a4f3951819de7e514b2c490f570 /qfunctionconfigurator | |
parent | faced34f8133e3a2c0b1f571f0d7a9a64282b280 (diff) |
qfc: qreal isn't float, use auto
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index 57182414..a977af77 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -224,7 +224,7 @@ void QFunctionConfigurator::mousePressEvent(QMouseEvent *e) for (int i = 0; i < points.size(); i++) { const QPointF pt = point_to_pixel(points[i]); - const float x = pt.x() - pos.x(); + const auto x = pt.x() - pos.x(); if (point_closeness_limit * point_closeness_limit >= x * x) { too_close = true; |