summaryrefslogtreecommitdiff
path: root/src/input/key.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-22 00:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-22 00:46:00 +0300
commite26c01fe66bc698555fdee9d681b3abd6822848a (patch)
treee74773ce1c66a714ee933d8228d94d205a37aa43 /src/input/key.cpp
parentd181a2fb30ac73173fba851d4b2f7ca6f7d46ca0 (diff)
downloadManaVerse-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.gz
ManaVerse-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.bz2
ManaVerse-e26c01fe66bc698555fdee9d681b3abd6822848a.tar.xz
ManaVerse-e26c01fe66bc698555fdee9d681b3abd6822848a.zip
Remove some parentheses.
Diffstat (limited to 'src/input/key.cpp')
-rw-r--r--src/input/key.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/input/key.cpp b/src/input/key.cpp
index 97019e67e..13646dc8e 100644
--- a/src/input/key.cpp
+++ b/src/input/key.cpp
@@ -88,10 +88,11 @@ bool Key::isNumber() const
bool Key::isLetter() const
{
- return (((mValue >= 65 && mValue <= 90)
- || (mValue >= 97 && mValue <= 122)
- || (mValue >= 192 && mValue <= 255))
- && (mValue != 215) && (mValue != 247));
+ return ((mValue >= 65 && mValue <= 90) ||
+ (mValue >= 97 && mValue <= 122) ||
+ (mValue >= 192 && mValue <= 255)) &&
+ mValue != 215 &&
+ mValue != 247;
}
int Key::getValue() const
@@ -106,5 +107,5 @@ bool Key::operator==(const Key& key) const
bool Key::operator!=(const Key& key) const
{
- return (mValue != key.mValue);
+ return mValue != key.mValue;
}