From 33aa2b6bbbf6edbe2d0173a03a9869e7ed7a2660 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Oct 2017 09:21:41 +0100 Subject: static constexpr -> constexpr --- tracker-steamvr/steamvr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tracker-steamvr/steamvr.cpp') diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp index 259145b9..d250197b 100644 --- a/tracker-steamvr/steamvr.cpp +++ b/tracker-steamvr/steamvr.cpp @@ -54,7 +54,7 @@ void device_list::fill_device_specs(QList& list) v->GetDeviceToAbsoluteTrackingPose(origin::TrackingUniverseSeated, 0, device_states, vr::k_unMaxTrackedDeviceCount); - static constexpr unsigned bufsiz = vr::k_unTrackingStringSize; + constexpr unsigned bufsiz = vr::k_unTrackingStringSize; static char str[bufsiz+1] {}; // vr_lock prevents reentrancy for (unsigned k = 0; k < vr::k_unMaxTrackedDeviceCount; k++) @@ -238,7 +238,7 @@ void steamvr::data(double* data) std::tie(ok, pose) = device_list::get_pose(device_index); if (ok) { - static constexpr int c = 10; + constexpr int c = 10; const auto& result = pose.mDeviceToAbsoluteTracking; @@ -248,7 +248,7 @@ void steamvr::data(double* data) matrix_to_euler(data[Yaw], data[Pitch], data[Roll], result); - static constexpr double r2d = 180 / M_PI; + constexpr double r2d = 180 / M_PI; data[Yaw] *= r2d; data[Pitch] *= r2d; data[Roll] *= r2d; } } -- cgit v1.2.3