Make var/symbol for arrays with signal & slot names really const

wilder
Friedrich W. H. Kossebau 10 years ago
parent e4a342c48a
commit b61c4d73b8
  1. 4
      src/kdescendantsproxymodel.cpp
  2. 4
      src/kselectionproxymodel.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)),

@ -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)),

Loading…
Cancel
Save