diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-22 19:01:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-22 19:01:28 +0200 |
commit | f495b0136faf48d397138272eed683ade26187c9 (patch) | |
tree | ec171bcc93829ee74b034667b65667b4adc2828b /qfunctionconfigurator | |
parent | 69236c0317a30bf100ec4f3d0f8e58fdc565a34b (diff) |
const constexpr -> constexpr
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index 70f68285..1e5b957c 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -154,7 +154,7 @@ void QFunctionConfigurator::drawFunction() QPen pen(spline_color, 1.2, Qt::SolidLine); - static const constexpr double step = 1.02; + static constexpr double step = 1.02; const double max = _config->maxInput(); QPointF prev = point_to_pixel(QPointF(0, 0)); @@ -284,12 +284,12 @@ void QFunctionConfigurator::mouseMoveEvent(QMouseEvent *e) if (!_config) return; - static const constexpr int min_refresh_delay = 25; + static constexpr int min_refresh_delay = 25; if (timer.isValid() && timer.elapsed() < min_refresh_delay) return; - static const constexpr int refresh_delay = 50; + static constexpr int refresh_delay = 50; QList<QPointF> points = _config->getPoints(); if (moving_control_point_idx >= 0 && moving_control_point_idx < points.size()) { |