summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr
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 /tracker-steamvr
parent29bf7f94eab413e25914c3939d7ff19ef0cd4c48 (diff)
static constexpr -> constexpr
Diffstat (limited to 'tracker-steamvr')
-rw-r--r--tracker-steamvr/steamvr.cpp6
1 files changed, 3 insertions, 3 deletions
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<device_spec>& 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;
}
}