diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-13 22:58:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-14 01:42:53 +0300 |
commit | e40411cdc287343a32a8371f2116fcc11545b466 (patch) | |
tree | 4655f02211f1b08b8ead94175fd419c6e766f9c8 /src/gui/killstats.cpp | |
parent | 2ebce73d5018945bb5f5363913a4096e04bf5a0f (diff) | |
download | ManaVerse-e40411cdc287343a32a8371f2116fcc11545b466.tar.gz ManaVerse-e40411cdc287343a32a8371f2116fcc11545b466.tar.bz2 ManaVerse-e40411cdc287343a32a8371f2116fcc11545b466.tar.xz ManaVerse-e40411cdc287343a32a8371f2116fcc11545b466.zip |
Improve event.getId() speed.
Diffstat (limited to 'src/gui/killstats.cpp')
-rw-r--r-- | src/gui/killstats.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp index d8da5c1e8..d7590d99e 100644 --- a/src/gui/killstats.cpp +++ b/src/gui/killstats.cpp @@ -144,7 +144,8 @@ KillStats::~KillStats() void KillStats::action(const gcn::ActionEvent &event) { - if (event.getId() == "reset") + const std::string &eventId = event.getId(); + if (eventId == "reset") { mKillCounter = 0; mExpCounter = 0; @@ -157,7 +158,7 @@ void KillStats::action(const gcn::ActionEvent &event) resetTimes(); } - else if (event.getId() == "timer") + else if (eventId == "timer") { mKillTimer = 0; mKillTCounter = 0; |