From b162094c7609fa37f2eef6be3fed0e26830bc506 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Sep 2012 23:05:16 +0300 Subject: Improve a bit widgets speed. --- src/gui/widgets/tab.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/tab.cpp') diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp index 124579fab..e002c03fe 100644 --- a/src/gui/widgets/tab.cpp +++ b/src/gui/widgets/tab.cpp @@ -100,13 +100,11 @@ void Tab::init() if (mInstances == 0) { // Load the skin - if (Theme::instance()) + Theme *const theme = Theme::instance(); + if (theme) { for (int mode = 0; mode < TAB_COUNT; mode ++) - { - Theme::instance()->loadRect(tabImg[mode], - data[mode], "tab.xml"); - } + theme->loadRect(tabImg[mode], data[mode], "tab.xml"); } updateAlpha(); } -- cgit v1.2.3-70-g09d2