diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
commit | d97189f055798b5b2051c1c5770a3def62747461 (patch) | |
tree | d66a891dba33d2ce1c882e0de7d6145bb2e0326b /src/gui/widgets/browserbox.cpp | |
parent | 25dce1399e40f24809842303d48ef090439de1e5 (diff) | |
download | manaplus-d97189f055798b5b2051c1c5770a3def62747461.tar.gz manaplus-d97189f055798b5b2051c1c5770a3def62747461.tar.bz2 manaplus-d97189f055798b5b2051c1c5770a3def62747461.tar.xz manaplus-d97189f055798b5b2051c1c5770a3def62747461.zip |
Improve perfomance in some object constructors.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 6954f781f..534bd1d19 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -63,14 +63,14 @@ BrowserBox::BrowserBox(unsigned int mode, bool opaque): mUpdateTime(-1), mAlwaysUpdate(true), mProcessVersion(false), - mEnableImages(false) + mEnableImages(false), + mBackgroundColor(Theme::getThemeColor(Theme::BACKGROUND)), + mHighlightColor(Theme::getThemeColor(Theme::HIGHLIGHT)), + mHyperLinkColor(Theme::getThemeColor(Theme::HYPERLINK)) { setFocusable(true); addMouseListener(this); - mBackgroundColor = Theme::getThemeColor(Theme::BACKGROUND); - mHighlightColor = Theme::getThemeColor(Theme::HIGHLIGHT); - mHyperLinkColor = Theme::getThemeColor(Theme::HYPERLINK); mColors[RED] = Theme::getThemeColor(Theme::RED); mColors[GREEN] = Theme::getThemeColor(Theme::GREEN); mColors[BLUE] = Theme::getThemeColor(Theme::BLUE); |