From 7687617e912719c4de3455992492dcb73e688c16 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Thu, 11 May 2017 00:32:42 +0100 Subject: [PATCH] made requested changes --- plugins/openvr/src/ViveControllerManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/openvr/src/ViveControllerManager.cpp b/plugins/openvr/src/ViveControllerManager.cpp index 5dd4c71194..e5cd7ffecc 100644 --- a/plugins/openvr/src/ViveControllerManager.cpp +++ b/plugins/openvr/src/ViveControllerManager.cpp @@ -576,7 +576,7 @@ void ViveControllerManager::InputDevice::saveSettings() const { } QString ViveControllerManager::InputDevice::configToString() { - QString currentConfig = ""; + QString currentConfig; switch (_preferedConfig) { case Config::Auto: currentConfig = "Auto"; @@ -601,7 +601,7 @@ void ViveControllerManager::InputDevice::setConfigFromString(const QString& valu if (value == "Auto") { _preferedConfig = Config::Auto; } else if (value == "Feet") { - _preferedConfig = Config::Feet; + _preferedConfig = Config::Feet; } else if (value == "FeetAndHips") { _preferedConfig = Config::FeetAndHips; } else if (value == "FeetHipsAndChest") { @@ -612,7 +612,7 @@ void ViveControllerManager::InputDevice::setConfigFromString(const QString& valu void ViveControllerManager::InputDevice::createPreferences() { loadSettings(); auto preferences = DependencyManager::get(); - static const QString VIVE_PUCKS_CONFIG { "Vive Pucks Configuration" }; + static const QString VIVE_PUCKS_CONFIG = "Vive Pucks Configuration"; { auto getter = [this]()->QString { return configToString(); };