summaryrefslogtreecommitdiff
path: root/src/guichan/key.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-31 01:27:37 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-31 01:27:37 +0300
commit9d3b975bcb84ad1c61d628de2804751c0d0707dd (patch)
treefe7494b1ecd561a40dc96d088c77d69b6d4ce13e /src/guichan/key.cpp
parent1d0044cbc81e547ad688a295288910d58e1a3fb1 (diff)
downloadplus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.gz
plus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.bz2
plus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.xz
plus-9d3b975bcb84ad1c61d628de2804751c0d0707dd.zip
Fix code style and missing members initialisations.
Diffstat (limited to 'src/guichan/key.cpp')
-rw-r--r--src/guichan/key.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/guichan/key.cpp b/src/guichan/key.cpp
index 70e965209..1609a6a3c 100644
--- a/src/guichan/key.cpp
+++ b/src/guichan/key.cpp
@@ -49,8 +49,8 @@
namespace gcn
{
- Key::Key(int value)
- :mValue(value)
+ Key::Key(int value) :
+ mValue(value)
{
}
@@ -69,8 +69,8 @@ namespace gcn
bool Key::isLetter() const
{
return (((mValue >= 65 && mValue <= 90)
- || (mValue >= 97 && mValue <= 122)
- || (mValue >= 192 && mValue <= 255))
+ || (mValue >= 97 && mValue <= 122)
+ || (mValue >= 192 && mValue <= 255))
&& (mValue != 215) && (mValue != 247));
}
@@ -78,14 +78,14 @@ namespace gcn
{
return mValue;
}
-
- bool Key::operator==(const Key& key) const
- {
- return mValue == key.mValue;
- }
- bool Key::operator!=(const Key& key) const
- {
- return (mValue != key.mValue);
- }
+ bool Key::operator==(const Key& key) const
+ {
+ return mValue == key.mValue;
+ }
+
+ bool Key::operator!=(const Key& key) const
+ {
+ return (mValue != key.mValue);
+ }
}