summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 3636bea5f..2ed3d8a61 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -356,8 +356,8 @@ void KeyboardConfig::retrieve()
{
for (int i = 0; i < KEY_TOTAL; i++)
{
- mKey[i].value = (int) config.getValue(
- mKey[i].configField, mKey[i].defaultValue);
+ mKey[i].value = static_cast<int>(config.getValue(
+ mKey[i].configField, mKey[i].defaultValue));
}
}
@@ -451,7 +451,7 @@ void KeyboardConfig::refreshActiveKeys()
std::string KeyboardConfig::getKeyValueString(int index) const
{
std::string key = SDL_GetKeyName(
- (SDLKey) getKeyValue(index));
+ static_cast<SDLKey>(getKeyValue(index)));
return getKeyShortString(key);
}