diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-11 15:46:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-11 15:46:26 -0700 |
commit | 5bc91f00c51f96de37dae9b44b575c715e12f496 (patch) | |
tree | 7de90029246339aeff66323c7cd41115ddfd9703 /qt-models/messagehandlermodel.cpp | |
parent | 49cbfdd72d0743ef27877b8826810107283e977b (diff) | |
download | subsurface-5bc91f00c51f96de37dae9b44b575c715e12f496.tar.gz |
Fix a few warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/messagehandlermodel.cpp')
-rw-r--r-- | qt-models/messagehandlermodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |