diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-14 02:54:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-14 02:54:44 +0300 |
commit | 84499779fcf0c8b5392a88f1c9311775e692ebef (patch) | |
tree | f390326a50eed73d8f8c62107979a4d81093ce52 /src/gui/widgets/playerbox.cpp | |
parent | 4ee30f47b491de0ace9b692072fd286cf12c7828 (diff) | |
download | ManaVerse-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.gz ManaVerse-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.bz2 ManaVerse-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.xz ManaVerse-84499779fcf0c8b5392a88f1c9311775e692ebef.zip |
Improve a bit some gui controls speed.
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r-- | src/gui/widgets/playerbox.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp index 0b0e548b2..0fdaa87c3 100644 --- a/src/gui/widgets/playerbox.cpp +++ b/src/gui/widgets/playerbox.cpp @@ -57,10 +57,11 @@ PlayerBox::PlayerBox(std::string skin) : PlayerBox::~PlayerBox() { - if (Theme::instance()) + Theme *const theme = Theme::instance(); + if (theme) { - Theme::instance()->unload(mSkin); - Theme::instance()->unloadRect(mBackground); + theme->unload(mSkin); + theme->unloadRect(mBackground); } mBeing = nullptr; |