mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-29 09:40:02 +01:00
Replace 0 with nullptr
This commit is contained in:
parent
6ccf661678
commit
33d2e0f836
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user