diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:03:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 11:03:22 +0300 |
commit | dfaae6f6e804e7779ade870a211a1a14d3a5d9aa (patch) | |
tree | a7652f4e548e166b39a8203e27c890c02c62d5ca /src/gui/windows/registerdialog.cpp | |
parent | fd050698f74b5dc7a9867bc93ba6b7c65ef2462f (diff) | |
download | mv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.gz mv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.bz2 mv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.xz mv-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.zip |
Remove getter for loginHandler.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r-- | src/gui/windows/registerdialog.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 7253c3630..5701395a7 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -73,7 +73,7 @@ RegisterDialog::RegisterDialog(LoginData *const data) : { setCloseButton(true); - const int optionalActions = Net::getLoginHandler()-> + const int optionalActions = loginHandler-> supportedOptionalActions(); // TRANSLATORS: register dialog. label. @@ -178,14 +178,10 @@ void RegisterDialog::action(const ActionEvent &event) std::string errorMsg; int error = 0; - const unsigned int minUser = Net::getLoginHandler() - ->getMinUserNameLength(); - const unsigned int maxUser = Net::getLoginHandler() - ->getMaxUserNameLength(); - const unsigned int minPass = Net::getLoginHandler() - ->getMinPasswordLength(); - const unsigned int maxPass = Net::getLoginHandler() - ->getMaxPasswordLength(); + const unsigned int minUser = loginHandler->getMinUserNameLength(); + const unsigned int maxUser = loginHandler->getMaxUserNameLength(); + const unsigned int minPass = loginHandler->getMinPasswordLength(); + const unsigned int maxPass = loginHandler->getMaxPasswordLength(); if (user.length() < minUser) { |