summaryrefslogtreecommitdiff
path: root/src/gui/register.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-15 11:06:32 -0700
committerIra Rice <irarice@gmail.com>2009-01-15 11:06:32 -0700
commit10a9dbacd9334caede10f1b21d42cdf7e1efcd03 (patch)
treedef2baead68de5a9ccc842e25b3cdcfe9a638c9b /src/gui/register.cpp
parente7f4e78f76972ca3882b9d2763ae9cab31675d3a (diff)
downloadmana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.gz
mana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.bz2
mana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.tar.xz
mana-client-10a9dbacd9334caede10f1b21d42cdf7e1efcd03.zip
Style cleanups throughout most of the code. Splitting function type from
the function names should no longer be around. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/register.cpp')
-rw-r--r--src/gui/register.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/gui/register.cpp b/src/gui/register.cpp
index 5d687425..568ec5ff 100644
--- a/src/gui/register.cpp
+++ b/src/gui/register.cpp
@@ -43,14 +43,12 @@
#include "../utils/gettext.h"
#include "../utils/strprintf.h"
-void
-WrongDataNoticeListener::setTarget(gcn::TextField *textField)
+void WrongDataNoticeListener::setTarget(gcn::TextField *textField)
{
mTarget = textField;
}
-void
-WrongDataNoticeListener::action(const gcn::ActionEvent &event)
+void WrongDataNoticeListener::action(const gcn::ActionEvent &event)
{
if (event.getId() == "ok")
{
@@ -173,8 +171,7 @@ RegisterDialog::~RegisterDialog()
delete mWrongDataNoticeListener;
}
-void
-RegisterDialog::action(const gcn::ActionEvent &event)
+void RegisterDialog::action(const gcn::ActionEvent &event)
{
if (event.getId() == "cancel")
{
@@ -263,14 +260,12 @@ RegisterDialog::action(const gcn::ActionEvent &event)
}
}
-void
-RegisterDialog::keyPressed(gcn::KeyEvent &keyEvent)
+void RegisterDialog::keyPressed(gcn::KeyEvent &keyEvent)
{
mRegisterButton->setEnabled(canSubmit());
}
-bool
-RegisterDialog::canSubmit()
+bool RegisterDialog::canSubmit()
{
return !mUserField->getText().empty() &&
!mPasswordField->getText().empty() &&
@@ -280,8 +275,7 @@ RegisterDialog::canSubmit()
state == REGISTER_STATE;
}
-bool
-RegisterDialog::isUShort(const std::string &str)
+bool RegisterDialog::isUShort(const std::string &str)
{
if (str == "")
{
@@ -304,8 +298,7 @@ RegisterDialog::isUShort(const std::string &str)
return true;
}
-unsigned short
-RegisterDialog::getUShort(const std::string &str)
+unsigned short RegisterDialog::getUShort(const std::string &str)
{
unsigned long l = 0;
for (std::string::const_iterator strPtr = str.begin(), strEnd = str.end();