diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-10 16:31:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-10 18:35:13 +0100 |
commit | e026e5570091b3eb81c619a4ec203b94f24b9acd (patch) | |
tree | f133770822558f400af3bf6e17654cf7fc9ea683 /tracker-steamvr/steamvr.cpp | |
parent | 34a9d3691171864068a24a88442e6635ff29d738 (diff) |
tracker/steamvr: inconsequential cleanup
Diffstat (limited to 'tracker-steamvr/steamvr.cpp')
-rw-r--r-- | tracker-steamvr/steamvr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp index 689e0ba9..32cb6ed1 100644 --- a/tracker-steamvr/steamvr.cpp +++ b/tracker-steamvr/steamvr.cpp @@ -44,7 +44,6 @@ void device_list::fill_device_specs(QList<device_spec>& list) with_vr_lock([&](vr_t v, error_t) { list.clear(); - list.reserve(max_devices); pose_t device_states[max_devices]; @@ -120,6 +119,8 @@ device_list::device_list() void device_list::refresh_device_list() { + device_specs.clear(); + device_specs.reserve(max_devices); fill_device_specs(device_specs); } |