diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-29 09:21:41 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-29 09:41:23 +0100 |
commit | 33aa2b6bbbf6edbe2d0173a03a9869e7ed7a2660 (patch) | |
tree | 7deb1be34f9d7ecfca3bd22da6bf722ee19b5f4f /spline | |
parent | 29bf7f94eab413e25914c3939d7ff19ef0cd4c48 (diff) |
static constexpr -> constexpr
Diffstat (limited to 'spline')
-rw-r--r-- | spline/spline-widget.cpp | 8 | ||||
-rw-r--r-- | spline/spline.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index 67751840..72f6370e 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -203,7 +203,7 @@ void spline_widget::drawFunction() //#define DEBUG_SPLINE #ifndef DEBUG_SPLINE - static constexpr double step_ = 5; + constexpr double step_ = 5; const double maxx = _config->max_input(); const double step = step_ / c.x(); @@ -563,8 +563,8 @@ void spline_widget::show_tooltip(const QPoint& pos, const QPointF& value_) bool spline_widget::is_in_bounds(const QPoint& pos) const { - static constexpr int grace = point_size * 3; - static constexpr int bottom_grace = int(point_size * 1.5); + constexpr int grace = point_size * 3; + constexpr int bottom_grace = int(point_size * 1.5); return (pos.x() + grace > pixel_bounds.left() && pos.x() - grace < pixel_bounds.right() && pos.y() + grace > pixel_bounds.top() && @@ -612,7 +612,7 @@ QPointF spline_widget::pixel_coord_to_point(const QPoint& point) qreal x = (point.x() - pixel_bounds.x()) / c.x(); qreal y = (pixel_bounds.height() - point.y() + pixel_bounds.y()) / c.y(); - static constexpr int c = 1000; + constexpr int c = 1000; if (snap_x > 0) { diff --git a/spline/spline.cpp b/spline/spline.cpp index e3cd2d6f..2d741474 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -471,7 +471,7 @@ std::shared_ptr<const settings> spline::get_settings() const double spline::bucket_size_coefficient(const QList<QPointF>& points) const { - static constexpr double eps = 1e-4; + constexpr double eps = 1e-4; const double maxx = max_input(); |