summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnar Thomsen <[email protected]>2015-05-16 00:07:15 +0200
committerRagnar Thomsen <[email protected]>2015-05-16 00:07:15 +0200
commitf45763da1080b232818d22ed2258c8c867a12dcf (patch)
tree1c173930f9e03b38826a71e91f56b7f9db2ca2f2
parent982e6489a004a3d9592b723e7b009de75bfcfbd7 (diff)
Use Q_UNUSED to silence some warnings
-rw-r--r--app/mainwindow.cpp2
-rw-r--r--part/archivemodel.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 5d74efa..abd3fff 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -224,6 +224,7 @@ void MainWindow::openArchive()
{
Interface *iface = qobject_cast<Interface*>(m_part);
Q_ASSERT(iface);
+ Q_UNUSED(iface);
QFileDialog dlg(this, i18nc("to open an archive", "Open Archive"));
dlg.setMimeTypeFilters(Kerfuffle::supportedMimeTypes());
@@ -265,6 +266,7 @@ void MainWindow::newArchive()
{
Interface *iface = qobject_cast<Interface*>(m_part);
Q_ASSERT(iface);
+ Q_UNUSED(iface);
const QStringList mimeTypes = Kerfuffle::supportedWriteMimeTypes();
diff --git a/part/archivemodel.cpp b/part/archivemodel.cpp
index 8aab79e..d3c8301 100644
--- a/part/archivemodel.cpp
+++ b/part/archivemodel.cpp
@@ -712,6 +712,7 @@ void ArchiveModel::slotEntryRemoved(const QString & path)
if (entry) {
ArchiveDirNode *parent = entry->parent();
QModelIndex index = indexForNode(entry);
+ Q_UNUSED(index);
beginRemoveRows(indexForNode(parent), entry->row(), entry->row());