diff --git a/src/kdescendantsproxymodel.cpp b/src/kdescendantsproxymodel.cpp index a25aa4e..477cd96 100644 --- a/src/kdescendantsproxymodel.cpp +++ b/src/kdescendantsproxymodel.cpp @@ -248,7 +248,7 @@ void KDescendantsProxyModel::setSourceModel(QAbstractItemModel *_sourceModel) { beginResetModel(); - static const char *modelSignals[] = { + static const char *const modelSignals[] = { SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), SIGNAL(rowsInserted(QModelIndex,int,int)), SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), @@ -262,7 +262,7 @@ void KDescendantsProxyModel::setSourceModel(QAbstractItemModel *_sourceModel) SIGNAL(layoutChanged()), SIGNAL(destroyed()) }; - static const char *proxySlots[] = { + static const char *const proxySlots[] = { SLOT(sourceRowsAboutToBeInserted(QModelIndex,int,int)), SLOT(sourceRowsInserted(QModelIndex,int,int)), SLOT(sourceRowsAboutToBeRemoved(QModelIndex,int,int)), diff --git a/src/kselectionproxymodel.cpp b/src/kselectionproxymodel.cpp index 7ec6010..4ee510f 100644 --- a/src/kselectionproxymodel.cpp +++ b/src/kselectionproxymodel.cpp @@ -2103,7 +2103,7 @@ void KSelectionProxyModel::setSourceModel(QAbstractItemModel *_sourceModel) beginResetModel(); d->m_resetting = true; - static const char *modelSignals[] = { + static const char *const modelSignals[] = { SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), SIGNAL(rowsInserted(QModelIndex,int,int)), SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), @@ -2117,7 +2117,7 @@ void KSelectionProxyModel::setSourceModel(QAbstractItemModel *_sourceModel) SIGNAL(layoutChanged()), SIGNAL(destroyed()) }; - static const char *proxySlots[] = { + static const char *const proxySlots[] = { SLOT(sourceRowsAboutToBeInserted(QModelIndex,int,int)), SLOT(sourceRowsInserted(QModelIndex,int,int)), SLOT(sourceRowsAboutToBeRemoved(QModelIndex,int,int)),