From e40411cdc287343a32a8371f2116fcc11545b466 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Feb 2013 22:58:01 +0300 Subject: Improve event.getId() speed. --- src/gui/changeemaildialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/changeemaildialog.cpp') 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(); -- cgit v1.2.3-70-g09d2