From 84499779fcf0c8b5392a88f1c9311775e692ebef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 14 Sep 2012 02:54:44 +0300 Subject: Improve a bit some gui controls speed. --- src/gui/widgets/playerbox.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/playerbox.cpp') 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; -- cgit v1.2.3-60-g2f50