From e7f6613e5e47f195dfe4bbd9147584bf8a8c1712 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 22 Jun 2020 16:43:58 +0000 Subject: [PATCH] replace zero with Q_NULLPTR check in QCompletionEngine::filterHistory() Signed-off-by: Ivailo Monev --- src/gui/util/qcompleter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/util/qcompleter.cpp b/src/gui/util/qcompleter.cpp index 90f86b817..76d230853 100644 --- a/src/gui/util/qcompleter.cpp +++ b/src/gui/util/qcompleter.cpp @@ -468,10 +468,10 @@ QMatchData QCompletionEngine::filterHistory() Q_UNUSED(isDirModel) Q_UNUSED(isFsModel) #ifndef QT_NO_DIRMODEL - isDirModel = (qobject_cast(source) != 0); + isDirModel = (qobject_cast(source) != Q_NULLPTR); #endif #ifndef QT_NO_FILESYSTEMMODEL - isFsModel = (qobject_cast(source) != 0); + isFsModel = (qobject_cast(source) != Q_NULLPTR); #endif QVector v; QIndexMapper im(v); -- 2.11.0