summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/sliderlist.cpp1
-rw-r--r--src/gui/windows/chatwindow.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/sliderlist.cpp b/src/gui/widgets/sliderlist.cpp
index f925dcb10..ca642ee69 100644
--- a/src/gui/widgets/sliderlist.cpp
+++ b/src/gui/widgets/sliderlist.cpp
@@ -40,6 +40,7 @@ SliderList::SliderList(const Widget2 *const widget,
Container(widget),
ActionListener(),
MouseListener(),
+ mButtons(),
mLabel(new Label(this)),
mListModel(listModel),
mPrevEventId(),
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index d1d9370a1..776ad9501 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -897,7 +897,7 @@ void ChatWindow::keyPressed(KeyEvent &event)
bool ChatWindow::addCurrentToHistory()
{
- const std::string str = mChatInput->getText();
+ const std::string &str = mChatInput->getText();
if (str.empty())
return false;
FOR_EACH (HistoryIterator, it, mHistory)