diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-26 20:08:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-28 21:17:59 +0300 |
commit | c430b75e370a21a17f80d4ba3acd84111828a462 (patch) | |
tree | 6d4ea8421de26c623c4196a7dd2aa3d86c5add01 /src/net/ea | |
parent | 1dcb42c708c92216c7c9cacd3d3c9301e71e6006 (diff) | |
download | manaverse-c430b75e370a21a17f80d4ba3acd84111828a462.tar.gz manaverse-c430b75e370a21a17f80d4ba3acd84111828a462.tar.bz2 manaverse-c430b75e370a21a17f80d4ba3acd84111828a462.tar.xz manaverse-c430b75e370a21a17f80d4ba3acd84111828a462.zip |
add const for methods return values.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/loginhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/loginhandler.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp index 23f9f91c0..59d72dd78 100644 --- a/src/net/ea/loginhandler.cpp +++ b/src/net/ea/loginhandler.cpp @@ -121,7 +121,7 @@ void LoginHandler::registerAccount(LoginData *const loginData1) const sendLoginRegister(username, loginData1->password, loginData1->email); } -Worlds LoginHandler::getWorlds() const +const Worlds &LoginHandler::getWorlds() const { return mWorlds; } diff --git a/src/net/ea/loginhandler.h b/src/net/ea/loginhandler.h index 994029247..e84da5ce4 100644 --- a/src/net/ea/loginhandler.h +++ b/src/net/ea/loginhandler.h @@ -60,7 +60,7 @@ class LoginHandler : public Net::LoginHandler virtual void registerAccount(LoginData *const loginData) const override; - virtual Worlds getWorlds() const override A_WARN_UNUSED; + virtual const Worlds &getWorlds() const override A_WARN_UNUSED; virtual void clearWorlds() override; |