summaryrefslogtreecommitdiff
path: root/src/gui/changeemaildialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-13 22:58:01 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-14 01:42:53 +0300
commite40411cdc287343a32a8371f2116fcc11545b466 (patch)
tree4655f02211f1b08b8ead94175fd419c6e766f9c8 /src/gui/changeemaildialog.cpp
parent2ebce73d5018945bb5f5363913a4096e04bf5a0f (diff)
downloadmanaverse-e40411cdc287343a32a8371f2116fcc11545b466.tar.gz
manaverse-e40411cdc287343a32a8371f2116fcc11545b466.tar.bz2
manaverse-e40411cdc287343a32a8371f2116fcc11545b466.tar.xz
manaverse-e40411cdc287343a32a8371f2116fcc11545b466.zip
Improve event.getId() speed.
Diffstat (limited to 'src/gui/changeemaildialog.cpp')
-rw-r--r--src/gui/changeemaildialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/changeemaildialog.cpp b/src/gui/changeemaildialog.cpp
index 4d0cd6d25..9b202e046 100644
--- a/src/gui/changeemaildialog.cpp
+++ b/src/gui/changeemaildialog.cpp
@@ -107,11 +107,12 @@ ChangeEmailDialog::~ChangeEmailDialog()
void ChangeEmailDialog::action(const gcn::ActionEvent &event)
{
- if (event.getId() == "cancel")
+ const std::string &eventId = event.getId();
+ if (eventId == "cancel")
{
Client::setState(STATE_CHAR_SELECT);
}
- else if (event.getId() == "change_email")
+ else if (eventId == "change_email")
{
const std::string username = mLoginData->username.c_str();