Use nullptr consistencty instead of 0 and NULL (Qt client)

This commit is contained in:
Mike Gelfand
2017-04-30 12:29:58 +03:00
parent 7bfd7f5863
commit 6da99c05e2
26 changed files with 86 additions and 86 deletions

View File

@@ -318,7 +318,7 @@ void FileTreeModel::clearSubtree(QModelIndex const& top)
FileTreeItem* const item = itemFromIndex(top);
if (item == 0)
if (item == nullptr)
{
return;
}
@@ -342,7 +342,7 @@ void FileTreeModel::clear()
FileTreeItem* FileTreeModel::findItemForFileIndex(int fileIndex) const
{
return myIndexCache.value(fileIndex, 0);
return myIndexCache.value(fileIndex, nullptr);
}
void FileTreeModel::addFile(int fileIndex, QString const& filename, bool wanted, int priority, uint64_t totalSize,