summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-10 19:14:48 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-10 19:14:48 +0300
commite8f099cace1d77dd9ff12b4231871c6e122a739d (patch)
treea873108303b514b2e67191e5f04d51e3c3a53f69 /src/gui/widgets/listbox.cpp
parent768a7e7499a95bb3ce14600e8050bcbbaaeed31f (diff)
downloadplus-e8f099cace1d77dd9ff12b4231871c6e122a739d.tar.gz
plus-e8f099cace1d77dd9ff12b4231871c6e122a739d.tar.bz2
plus-e8f099cace1d77dd9ff12b4231871c6e122a739d.tar.xz
plus-e8f099cace1d77dd9ff12b4231871c6e122a739d.zip
fix code style.
Diffstat (limited to 'src/gui/widgets/listbox.cpp')
-rw-r--r--src/gui/widgets/listbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp
index 76eadff0a..b6d31c239 100644
--- a/src/gui/widgets/listbox.cpp
+++ b/src/gui/widgets/listbox.cpp
@@ -68,7 +68,7 @@ ListBox::ListBox(const Widget2 *const widget,
mItemPadding = mSkin->getOption("itemPadding");
}
- const gcn::Font *font = getFont();
+ const gcn::Font *const font = getFont();
if (font)
mRowHeight = font->getHeight() + 2 * mItemPadding;
else
@@ -258,7 +258,7 @@ void ListBox::mouseReleased(gcn::MouseEvent &event)
mPressedIndex = -2;
}
-void ListBox::mouseReleased1(gcn::MouseEvent &mouseEvent)
+void ListBox::mouseReleased1(const gcn::MouseEvent &mouseEvent)
{
if (mouseEvent.getButton() == gcn::MouseEvent::LEFT)
{