Replace 0 with nullptr
This commit is contained in:
@@ -421,12 +421,12 @@ QStringList MergedProxyModel::mimeTypes() const {
|
|||||||
|
|
||||||
QMimeData *MergedProxyModel::mimeData(const QModelIndexList &indexes) 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
|
// Only ask the first index's model
|
||||||
const QAbstractItemModel *model = mapToSource(indexes[0]).model();
|
const QAbstractItemModel *model = mapToSource(indexes[0]).model();
|
||||||
if (!model) {
|
if (!model) {
|
||||||
return 0;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only ask about the indexes that are actually in that model
|
// Only ask about the indexes that are actually in that model
|
||||||
|
|||||||
Reference in New Issue
Block a user