summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-30 16:06:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-30 16:59:12 +0300
commit60d90692e487948b77edcac63acbef34254cea5b (patch)
treec2ca72f720f835099bc65c2832d5c7df3d92abbd /src/gui/widgets/textfield.cpp
parent38fe5f43b5ac41e41debed4868e81b4b4bf839ac (diff)
downloadplus-60d90692e487948b77edcac63acbef34254cea5b.tar.gz
plus-60d90692e487948b77edcac63acbef34254cea5b.tar.bz2
plus-60d90692e487948b77edcac63acbef34254cea5b.tar.xz
plus-60d90692e487948b77edcac63acbef34254cea5b.zip
remove duplicate variables.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 37629e44e..bff4f67f2 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -57,7 +57,6 @@ TextField::TextField(const Widget2 *const widget,
Widget2(widget),
mSendAlwaysEvents(sendAlwaysEvents),
mCaretColor(&getThemeColor(Theme::CARET)),
- mForegroundColor2(getThemeColor(Theme::TEXTFIELD_OUTLINE)),
mPopupMenu(nullptr),
mMinimum(0),
mMaximum(0),
@@ -68,6 +67,7 @@ TextField::TextField(const Widget2 *const widget,
{
setFrameSize(2);
mForegroundColor = getThemeColor(Theme::TEXTFIELD);
+ mForegroundColor2 = getThemeColor(Theme::TEXTFIELD_OUTLINE);
addFocusListener(this);
@@ -488,7 +488,7 @@ void TextField::handleCopy() const
void TextField::drawCaret(gcn::Graphics* graphics, int x)
{
- const gcn::Rectangle clipArea = graphics->getCurrentClipArea();
+ const gcn::Rectangle &clipArea = graphics->getCurrentClipArea();
graphics->setColor(*mCaretColor);
graphics->drawLine(x + mPadding, clipArea.height - mPadding,