X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fselectionmodelsynchronizer.cpp;fp=src%2Fclient%2Fselectionmodelsynchronizer.cpp;h=d5b8f8bcf77dda3598092ff7aa2138eae3fc1628;hp=717ef4e03c7b0fb9f9f5f52297c3a58cb52d5849;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe diff --git a/src/client/selectionmodelsynchronizer.cpp b/src/client/selectionmodelsynchronizer.cpp index 717ef4e0..d5b8f8bc 100644 --- a/src/client/selectionmodelsynchronizer.cpp +++ b/src/client/selectionmodelsynchronizer.cpp @@ -87,7 +87,7 @@ void SelectionModelSynchronizer::removeSelectionModel(QItemSelectionModel *model void SelectionModelSynchronizer::selectionModelDestroyed(QObject *object) { - QItemSelectionModel *model = static_cast(object); + auto *model = static_cast(object); QSet::iterator iter = _selectionModels.begin(); while (iter != _selectionModels.end()) { if (*iter == model) { @@ -107,7 +107,7 @@ void SelectionModelSynchronizer::syncedCurrentChanged(const QModelIndex ¤t if (!_changeCurrentEnabled) return; - QItemSelectionModel *selectionModel = qobject_cast(sender()); + auto *selectionModel = qobject_cast(sender()); Q_ASSERT(selectionModel); QModelIndex newSourceCurrent = mapToSource(current, selectionModel); if (newSourceCurrent.isValid() && newSourceCurrent != currentIndex()) @@ -123,7 +123,7 @@ void SelectionModelSynchronizer::syncedSelectionChanged(const QItemSelection &se if (!_changeSelectionEnabled) return; - QItemSelectionModel *selectionModel = qobject_cast(sender()); + auto *selectionModel = qobject_cast(sender()); Q_ASSERT(selectionModel); QItemSelection mappedSelection = selectionModel->selection();