summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-14 02:54:44 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-14 02:54:44 +0300
commit84499779fcf0c8b5392a88f1c9311775e692ebef (patch)
treef390326a50eed73d8f8c62107979a4d81093ce52 /src/gui/widgets/playerbox.cpp
parent4ee30f47b491de0ace9b692072fd286cf12c7828 (diff)
downloadmv-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.gz
mv-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.bz2
mv-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.xz
mv-84499779fcf0c8b5392a88f1c9311775e692ebef.zip
Improve a bit some gui controls speed.
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r--src/gui/widgets/playerbox.cpp7
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;