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 /pose-widget | |
parent | 29bf7f94eab413e25914c3939d7ff19ef0cd4c48 (diff) |
static constexpr -> constexpr
Diffstat (limited to 'pose-widget')
-rw-r--r-- | pose-widget/pose-widget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index 3e5f4ec3..950d64d8 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -107,7 +107,7 @@ void pose_transform::with_rotate(F&& fun, double xAngle, double yAngle, double z using std::sin; using std::cos; - static constexpr double d2r = M_PI / 180; + constexpr double d2r = M_PI / 180; euler::euler_t euler(-zAngle * d2r, xAngle * d2r, -yAngle * d2r); euler::rmat r = euler::euler_to_rmat(euler); @@ -237,7 +237,7 @@ void pose_transform::project_quad_texture() vec2i min, max; { - static constexpr const double c = 85/100.; + constexpr double c = 85/100.; const int sx_ = (w - std::max(0, (w - h)/2)) * 5/9; const int sy_ = (h - std::max(0, (h - w)/2)) * 5/9; @@ -382,7 +382,7 @@ void pose_transform::project_quad_texture() #if defined BILINEAR_FILTER float a; { - static constexpr unsigned k = 3; + constexpr unsigned k = 3; const uc i = orig[orig_pos + k]; const uc i_ = orig[orig_pos_ + k]; const uc i__ = orig[orig_pos__ + k]; |