summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.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/widgets/tabbedarea.cpp
parent2ebce73d5018945bb5f5363913a4096e04bf5a0f (diff)
downloadmanaplus-e40411cdc287343a32a8371f2116fcc11545b466.tar.gz
manaplus-e40411cdc287343a32a8371f2116fcc11545b466.tar.bz2
manaplus-e40411cdc287343a32a8371f2116fcc11545b466.tar.xz
manaplus-e40411cdc287343a32a8371f2116fcc11545b466.zip
Improve event.getId() speed.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index b0999fbd4..82f7b82e4 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -524,18 +524,18 @@ void TabbedArea::action(const gcn::ActionEvent& actionEvent)
}
else
{
- if (actionEvent.getId() == "shift_left")
+ const std::string &eventId = actionEvent.getId();
+ if (eventId == "shift_left")
{
if (mTabScrollIndex)
--mTabScrollIndex;
}
- else if (actionEvent.getId() == "shift_right")
+ else if (eventId == "shift_right")
{
if (mTabScrollIndex < mTabs.size() - 1)
++mTabScrollIndex;
}
adjustTabPositions();
-
updateArrowEnableState();
}
}