From 5bc91f00c51f96de37dae9b44b575c715e12f496 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 11 Jun 2017 15:46:26 -0700 Subject: Fix a few warnings Signed-off-by: Dirk Hohndel --- qt-models/messagehandlermodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qt-models/messagehandlermodel.cpp b/qt-models/messagehandlermodel.cpp index 85c8d6500..ec6e818c9 100644 --- a/qt-models/messagehandlermodel.cpp +++ b/qt-models/messagehandlermodel.cpp @@ -11,6 +11,7 @@ void logMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { + Q_UNUSED(context) MessageHandlerModel::self()->addLog(type, msg); } @@ -22,13 +23,14 @@ MessageHandlerModel * MessageHandlerModel::self() MessageHandlerModel::MessageHandlerModel(QObject *parent) { + Q_UNUSED(parent) // no more than one message handler. qInstallMessageHandler(logMessageHandler); } int MessageHandlerModel::rowCount(const QModelIndex& parent) const { - Q_UNUSED(parent); + Q_UNUSED(parent) return m_data.size(); } -- cgit v1.2.3-70-g09d2