DiffEditor: fix various warnings

Change-Id: I555aa30c8925ba8eeb314dd836f1544b93d7a66f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2018-05-03 14:48:28 +02:00
parent 45c42dcec8
commit 7d60710608
9 changed files with 23 additions and 23 deletions

View File

@@ -78,13 +78,13 @@ Core::IDocument *DiffEditorController::findOrCreateDocument(const QString &vcsId
QString preferredDisplayName = displayName;
Core::IEditor *editor = Core::EditorManager::openEditorWithContents(
Constants::DIFF_EDITOR_ID, &preferredDisplayName, QByteArray(), vcsId);
return editor ? editor->document() : 0;
return editor ? editor->document() : nullptr;
}
DiffEditorController *DiffEditorController::controller(Core::IDocument *document)
{
auto doc = qobject_cast<Internal::DiffEditorDocument *>(document);
return doc ? doc->controller() : 0;
return doc ? doc->controller() : nullptr;
}
void DiffEditorController::setDiffFiles(const QList<FileData> &diffFileList,