Replace 0 with nullptr

This commit is contained in:
Jonas Kvinge 2018-12-15 00:41:22 +01:00
parent 6ccf661678
commit 33d2e0f836
1 changed files with 2 additions and 2 deletions

View File

@ -421,12 +421,12 @@ QStringList MergedProxyModel::mimeTypes() const {
QMimeData *MergedProxyModel::mimeData(const QModelIndexList &indexes) const {
if (indexes.isEmpty()) return 0;
if (indexes.isEmpty()) return nullptr;
// Only ask the first index's model
const QAbstractItemModel *model = mapToSource(indexes[0]).model();
if (!model) {
return 0;
return nullptr;
}
// Only ask about the indexes that are actually in that model