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

parent eaa9d60b
......@@ -249,7 +249,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)),
......@@ -263,7 +263,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)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment