From e63fabec07872984dec1ed8f2e9661447b686768 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 13 Sep 2012 10:48:14 +0200 Subject: fix compiler warnings --- examples/GuiClient/rosterListView.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'examples/GuiClient/rosterListView.cpp') diff --git a/examples/GuiClient/rosterListView.cpp b/examples/GuiClient/rosterListView.cpp index aa08f08b..828decce 100644 --- a/examples/GuiClient/rosterListView.cpp +++ b/examples/GuiClient/rosterListView.cpp @@ -28,10 +28,16 @@ #include #include -rosterListView::rosterListView(QWidget* parent):QListView(parent), m_chat("Chat", this), -m_profile("View Profile", this), m_removeContact("Remove", this) +rosterListView::rosterListView(QWidget* parent) + : QListView(parent) + , m_chat("Chat", this) + , m_profile("View Profile", this) + , m_removeContact("Remove", this) { - bool check = connect(this, SIGNAL(pressed(QModelIndex)), this, + bool check; + Q_UNUSED(check); + + check = connect(this, SIGNAL(pressed(QModelIndex)), this, SLOT(mousePressed(QModelIndex))); Q_ASSERT(check); check = connect(this, SIGNAL(doubleClicked(QModelIndex)), this, @@ -74,11 +80,13 @@ void rosterListView::mousePressed(const QModelIndex& index) void rosterListView::doubleClicked(const QModelIndex& index) { + Q_UNUSED(index); m_chat.trigger(); } void rosterListView::clicked(const QModelIndex& index) { + Q_UNUSED(index); } QString rosterListView::selectedBareJid() -- cgit v1.2.3