summaryrefslogtreecommitdiffhomepage
path: root/spline/spline-widget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-29 09:21:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-10-29 09:41:23 +0100
commit33aa2b6bbbf6edbe2d0173a03a9869e7ed7a2660 (patch)
tree7deb1be34f9d7ecfca3bd22da6bf722ee19b5f4f /spline/spline-widget.cpp
parent29bf7f94eab413e25914c3939d7ff19ef0cd4c48 (diff)
static constexpr -> constexpr
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r--spline/spline-widget.cpp8
1 files changed, 4 insertions, 4 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)
{