summaryrefslogtreecommitdiff
path: root/src/net/loginhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 13:05:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9 (patch)
tree077c2ff59d6656096aa0acaaf4dd6bf4fb7867f7 /src/net/loginhandler.h
parent6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (diff)
downloadplus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.gz
plus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.bz2
plus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.tar.xz
plus-0cff44ef5c1383a638c30cc9f5f8c81b6b4318f9.zip
Add unused warnings to other files.
Diffstat (limited to 'src/net/loginhandler.h')
-rw-r--r--src/net/loginhandler.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h
index 1366e30dd..ed2ecc313 100644
--- a/src/net/loginhandler.h
+++ b/src/net/loginhandler.h
@@ -52,34 +52,34 @@ class LoginHandler
void setServer(const ServerInfo &server)
{ mServer = server; }
- ServerInfo getServer() const
+ ServerInfo getServer() const A_WARN_UNUSED
{ return mServer; }
virtual void connect() = 0;
- virtual bool isConnected() = 0;
+ virtual bool isConnected() A_WARN_UNUSED = 0;
virtual void disconnect() = 0;
/**
* @see OptionalAction
*/
- virtual int supportedOptionalActions() const = 0;
+ virtual int supportedOptionalActions() const A_WARN_UNUSED = 0;
- virtual bool isRegistrationEnabled() = 0;
+ virtual bool isRegistrationEnabled() A_WARN_UNUSED = 0;
virtual void getRegistrationDetails() = 0;
- virtual unsigned int getMinUserNameLength() const
+ virtual unsigned int getMinUserNameLength() const A_WARN_UNUSED
{ return 4; }
- virtual unsigned int getMaxUserNameLength() const
+ virtual unsigned int getMaxUserNameLength() const A_WARN_UNUSED
{ return 25; }
- virtual unsigned int getMinPasswordLength() const
+ virtual unsigned int getMinPasswordLength() const A_WARN_UNUSED
{ return 4; }
- virtual unsigned int getMaxPasswordLength() const
+ virtual unsigned int getMaxPasswordLength() const A_WARN_UNUSED
{ return 255; }
virtual void loginAccount(LoginData *loginData) = 0;
@@ -99,7 +99,7 @@ class LoginHandler
virtual void unregisterAccount(const std::string &username,
const std::string &password) = 0;
- virtual Worlds getWorlds() const = 0;
+ virtual Worlds getWorlds() const A_WARN_UNUSED = 0;
virtual void clearWorlds() = 0;