From: Ivailo Monev Date: Mon, 22 Jun 2020 16:43:58 +0000 (+0000) Subject: replace zero with Q_NULLPTR check in QCompletionEngine::filterHistory() X-Git-Tag: 4.12.0~3749 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e7f6613e5e47f195dfe4bbd9147584bf8a8c1712;p=kde%2FKatie.git replace zero with Q_NULLPTR check in QCompletionEngine::filterHistory() Signed-off-by: Ivailo Monev --- 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);