From 57fe704546267048fe3d4dcc441a9b76c0f4e55a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 9 Feb 2018 23:41:53 +0100 Subject: Fixed warnings --- framework/src/domain/mime/attachmentmodel.cpp | 6 +++--- framework/src/domain/peoplemodel.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/src/domain/mime/attachmentmodel.cpp b/framework/src/domain/mime/attachmentmodel.cpp index 34843960..2eb2cc13 100644 --- a/framework/src/domain/mime/attachmentmodel.cpp +++ b/framework/src/domain/mime/attachmentmodel.cpp @@ -91,7 +91,7 @@ QHash AttachmentModel::roleNames() const return roles; } -QModelIndex AttachmentModel::index(int row, int column, const QModelIndex &parent) const +QModelIndex AttachmentModel::index(int row, int column, const QModelIndex &) const { if (row < 0 || column != 0) { return QModelIndex(); @@ -210,7 +210,7 @@ bool AttachmentModel::openAttachment(const QModelIndex &index) return false; } -QModelIndex AttachmentModel::parent(const QModelIndex &index) const +QModelIndex AttachmentModel::parent(const QModelIndex &) const { return QModelIndex(); } @@ -223,7 +223,7 @@ int AttachmentModel::rowCount(const QModelIndex &parent) const return 0; } -int AttachmentModel::columnCount(const QModelIndex &parent) const +int AttachmentModel::columnCount(const QModelIndex &) const { return 1; } diff --git a/framework/src/domain/peoplemodel.cpp b/framework/src/domain/peoplemodel.cpp index 099c680a..108cab48 100644 --- a/framework/src/domain/peoplemodel.cpp +++ b/framework/src/domain/peoplemodel.cpp @@ -23,7 +23,7 @@ #include PeopleModel::PeopleModel(QObject *parent) - : QSortFilterProxyModel() + : QSortFilterProxyModel(parent) { using namespace Sink::ApplicationDomain; -- cgit v1.2.3