From 9155cc63345fc205200cffffe4db72912a79650d Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Thu, 16 Mar 2017 17:44:56 -0700 Subject: [PATCH] Fix windows warnings --- interface/src/avatar/MyAvatar.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/interface/src/avatar/MyAvatar.cpp b/interface/src/avatar/MyAvatar.cpp index cc40c8eab2..eb77779691 100644 --- a/interface/src/avatar/MyAvatar.cpp +++ b/interface/src/avatar/MyAvatar.cpp @@ -2097,7 +2097,7 @@ void MyAvatar::clearDriveKeys() { void MyAvatar::setDriveKey(int key, float val) { try { _driveKeys.at(key) = val; - } catch (const std::exception& exception) { + } catch (const std::exception&) { qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds"; } } @@ -2109,7 +2109,7 @@ float MyAvatar::getDriveKey(int key) const { float MyAvatar::getRawDriveKey(int key) const { try { return _driveKeys.at(key); - } catch (const std::exception& exception) { + } catch (const std::exception&) { qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds"; return 0.0f; } @@ -2124,7 +2124,7 @@ void MyAvatar::relayDriveKeysToCharacterController() { void MyAvatar::disableDriveKey(int key) { try { _disabledDriveKeys.set(key); - } catch (const std::exception& exception) { + } catch (const std::exception&) { qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds"; } } @@ -2132,7 +2132,7 @@ void MyAvatar::disableDriveKey(int key) { void MyAvatar::enableDriveKey(int key) { try { _disabledDriveKeys.reset(key); - } catch (const std::exception& exception) { + } catch (const std::exception&) { qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds"; } } @@ -2142,7 +2142,7 @@ void MyAvatar::disableDriveKeys(std::vector key) { std::for_each(std::begin(key), std::end(key), [&](int val){ _disabledDriveKeys.set(val); }); - } catch (const std::exception& exception) { + } catch (const std::exception&) { qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds"; } } @@ -2152,7 +2152,7 @@ void MyAvatar::enableDriveKeys(std::vector key) { std::for_each(std::begin(key), std::end(key), [&](int val) { _disabledDriveKeys.reset(val); }); - } catch (const std::exception& exception) { + } catch (const std::exception&) { qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds"; } } @@ -2160,7 +2160,7 @@ void MyAvatar::enableDriveKeys(std::vector key) { bool MyAvatar::isDriveKeyDisabled(int key) const { try { return _disabledDriveKeys.test(key); - } catch (const std::exception& exception) { + } catch (const std::exception&) { qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds"; return false; }