diff --git a/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp b/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp index 84f1f9c..cb81268 100644 --- a/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp +++ b/autotests/proxymodeltestapp/breadcrumbnavigationwidget.cpp @@ -269,7 +269,7 @@ BreadcrumbNavigationWidget::BreadcrumbNavigationWidget(QWidget *parent, Qt::Wind currentItemSelectionModel->setSourceModel(rootModel); SON(currentItemSelectionModel); - CurrentItemLabel *label = new CurrentItemLabel(currentItemSelectionModel, vSplitter); + new CurrentItemLabel(currentItemSelectionModel, vSplitter); QListView *selectionView = new QListView(vSplitter); diff --git a/autotests/proxymodeltestapp/kreparentingproxymodel.cpp b/autotests/proxymodeltestapp/kreparentingproxymodel.cpp index 177341f..41d0a58 100644 --- a/autotests/proxymodeltestapp/kreparentingproxymodel.cpp +++ b/autotests/proxymodeltestapp/kreparentingproxymodel.cpp @@ -495,7 +495,6 @@ QModelIndex KReparentingProxyModel::mapFromSource(const QModelIndex &sourceIndex QList list = it.value(); if (list.contains(sourceIndexFirstColumn)) { QModelIndex sourceParent = it.key(); - QModelIndex proxyParent = mapFromSource(sourceParent); int row = list.indexOf(sourceIndexFirstColumn); // There must have been a mapping made for it. @@ -1320,9 +1319,6 @@ void KReparentingProxyModelPrivate::sourceRowsAboutToBeMoved(const QModelIndex & Q_Q(KReparentingProxyModel); - QModelIndex proxySourceParent = q->mapFromSource(parent); - QModelIndex proxyDestinationParent = q->mapFromSource(destParent); - // I could look at the indexes between start and end (proxied could be several blocks), and move them to dest. // Then verify structure. // This could lead to an illegal move. @@ -1431,8 +1427,6 @@ void KReparentingProxyModelPrivate::emitDataChangedSignals(const QModelIndex &st QModelIndex proxyParent = startIndex.parent(); - const int column = 0; - int numChanged = 1; QModelIndex lastAffectedSibling = startIndex; diff --git a/autotests/proxymodeltestapp/modelcommanderwidget.cpp b/autotests/proxymodeltestapp/modelcommanderwidget.cpp index 4537a23..a013ae0 100644 --- a/autotests/proxymodeltestapp/modelcommanderwidget.cpp +++ b/autotests/proxymodeltestapp/modelcommanderwidget.cpp @@ -63,7 +63,7 @@ void ModelCommanderWidget::init() Q_ARG(QString, QString())); Q_FOREACH (const QString &testRun, testData) { - QTreeWidgetItem *testDataItem = new QTreeWidgetItem(testFunctionItem, QStringList() << testRun); + new QTreeWidgetItem(testFunctionItem, QStringList() << testRun); } } }