mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
Fix windows warnings
This commit is contained in:
parent
42316e713d
commit
9155cc6334
1 changed files with 7 additions and 7 deletions
|
@ -2097,7 +2097,7 @@ void MyAvatar::clearDriveKeys() {
|
||||||
void MyAvatar::setDriveKey(int key, float val) {
|
void MyAvatar::setDriveKey(int key, float val) {
|
||||||
try {
|
try {
|
||||||
_driveKeys.at(key) = val;
|
_driveKeys.at(key) = val;
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception&) {
|
||||||
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
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 {
|
float MyAvatar::getRawDriveKey(int key) const {
|
||||||
try {
|
try {
|
||||||
return _driveKeys.at(key);
|
return _driveKeys.at(key);
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception&) {
|
||||||
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
}
|
||||||
|
@ -2124,7 +2124,7 @@ void MyAvatar::relayDriveKeysToCharacterController() {
|
||||||
void MyAvatar::disableDriveKey(int key) {
|
void MyAvatar::disableDriveKey(int key) {
|
||||||
try {
|
try {
|
||||||
_disabledDriveKeys.set(key);
|
_disabledDriveKeys.set(key);
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception&) {
|
||||||
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2132,7 +2132,7 @@ void MyAvatar::disableDriveKey(int key) {
|
||||||
void MyAvatar::enableDriveKey(int key) {
|
void MyAvatar::enableDriveKey(int key) {
|
||||||
try {
|
try {
|
||||||
_disabledDriveKeys.reset(key);
|
_disabledDriveKeys.reset(key);
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception&) {
|
||||||
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2142,7 +2142,7 @@ void MyAvatar::disableDriveKeys(std::vector<int> key) {
|
||||||
std::for_each(std::begin(key), std::end(key), [&](int val){
|
std::for_each(std::begin(key), std::end(key), [&](int val){
|
||||||
_disabledDriveKeys.set(val);
|
_disabledDriveKeys.set(val);
|
||||||
});
|
});
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception&) {
|
||||||
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2152,7 +2152,7 @@ void MyAvatar::enableDriveKeys(std::vector<int> key) {
|
||||||
std::for_each(std::begin(key), std::end(key), [&](int val) {
|
std::for_each(std::begin(key), std::end(key), [&](int val) {
|
||||||
_disabledDriveKeys.reset(val);
|
_disabledDriveKeys.reset(val);
|
||||||
});
|
});
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception&) {
|
||||||
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2160,7 +2160,7 @@ void MyAvatar::enableDriveKeys(std::vector<int> key) {
|
||||||
bool MyAvatar::isDriveKeyDisabled(int key) const {
|
bool MyAvatar::isDriveKeyDisabled(int key) const {
|
||||||
try {
|
try {
|
||||||
return _disabledDriveKeys.test(key);
|
return _disabledDriveKeys.test(key);
|
||||||
} catch (const std::exception& exception) {
|
} catch (const std::exception&) {
|
||||||
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
qCCritical(interfaceapp) << Q_FUNC_INFO << ": Index out of bounds";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue