From d97189f055798b5b2051c1c5770a3def62747461 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 23 Jul 2012 00:10:43 +0300 Subject: Improve perfomance in some object constructors. --- src/gui/widgets/sliderlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/sliderlist.cpp') diff --git a/src/gui/widgets/sliderlist.cpp b/src/gui/widgets/sliderlist.cpp index 9dba00cee..50af87205 100644 --- a/src/gui/widgets/sliderlist.cpp +++ b/src/gui/widgets/sliderlist.cpp @@ -42,6 +42,7 @@ static const int sliderHeight = 30; SliderList::SliderList(gcn::ListModel *listModel, gcn::ActionListener* listener, std::string eventId) : + mLabel(new Label), mListModel(listModel), mOldWidth(0), mSelectedIndex(0) @@ -53,7 +54,6 @@ SliderList::SliderList(gcn::ListModel *listModel, mButtons[0] = new Button("<", mPrevEventId, this); mButtons[1] = new Button(">", mNextEventId, this); - mLabel = new Label(""); add(mButtons[0]); add(mLabel); add(mButtons[1]); -- cgit v1.2.3-70-g09d2