diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-20 20:50:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-20 20:50:50 +0300 |
commit | 4b19b15936faa8e1d5f331cc11147ccfc360bde7 (patch) | |
tree | e601b548c0c55a7e434b30cfff328ca5e3662bee /src/gui/widgets/scrollarea.cpp | |
parent | 042c4f09e34157522692d6f99f5c51bc04e8f27a (diff) | |
download | mv-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.gz mv-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.bz2 mv-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.xz mv-4b19b15936faa8e1d5f331cc11147ccfc360bde7.zip |
improve a bit code speed.
Diffstat (limited to 'src/gui/widgets/scrollarea.cpp')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index 56fdd299b..061db3333 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -148,10 +148,8 @@ void ScrollArea::init(std::string skinName) skinName = "scroll_background.xml"; Theme *const theme = Theme::instance(); if (theme) - theme->loadRect(background, skinName, "scroll_background.xml"); - - if (theme) { + theme->loadRect(background, skinName, "scroll_background.xml"); theme->loadRect(vMarker, "scroll.xml", ""); theme->loadRect(vMarkerHi, "scroll_highlighted.xml", "scroll.xml"); theme->loadRect(vBackground, "scroll_vbackground.xml", ""); |