diff options
Diffstat (limited to 'src/gui/widgets/sliderlist.cpp')
-rw-r--r-- | src/gui/widgets/sliderlist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/sliderlist.cpp b/src/gui/widgets/sliderlist.cpp index 50af87205..dd27cfbe5 100644 --- a/src/gui/widgets/sliderlist.cpp +++ b/src/gui/widgets/sliderlist.cpp @@ -39,8 +39,8 @@ static const int buttonWidth = 27; static const int buttonSpace = 30; static const int sliderHeight = 30; -SliderList::SliderList(gcn::ListModel *listModel, - gcn::ActionListener* listener, +SliderList::SliderList(gcn::ListModel *const listModel, + gcn::ActionListener *const listener, std::string eventId) : mLabel(new Label), mListModel(listModel), @@ -204,11 +204,11 @@ int SliderList::getMaxLabelWidth() return 1; int maxWidth = 0; - SDLFont *font = gui->getFont(); + const SDLFont *const font = gui->getFont(); for (int f = 0; f < mListModel->getNumberOfElements(); f ++) { - int w = font->getWidth(mListModel->getElementAt(f)); + const int w = font->getWidth(mListModel->getElementAt(f)); if (w > maxWidth) maxWidth = w; } |