1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-28 17:21:06 +01:00

Replace 0 with nullptr

This commit is contained in:
Jonas Kvinge 2018-12-15 00:41:22 +01:00
parent 6ccf661678
commit 33d2e0f836

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