Return Q_NULLPTR instead of 0 when the return type is a pointer.

This commit is contained in:
Felix Geyer 2012-07-23 14:58:57 +02:00
parent fcc936ceff
commit ecea101962
12 changed files with 67 additions and 66 deletions

View file

@ -81,7 +81,7 @@ Entry* EntryView::currentEntry()
return m_model->entryFromIndex(m_sortModel->mapToSource(list.first()));
}
else {
return 0;
return Q_NULLPTR;
}
}
@ -101,7 +101,7 @@ Entry* EntryView::entryFromIndex(const QModelIndex& index)
return m_model->entryFromIndex(m_sortModel->mapToSource(index));
}
else {
return 0;
return Q_NULLPTR;
}
}