OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
febf0ea
)
replace zero with Q_NULLPTR check in QCompletionEngine::filterHistory()
author
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 22 Jun 2020 16:43:58 +0000
(16:43 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 22 Jun 2020 16:43:58 +0000
(16:43 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/util/qcompleter.cpp
patch
|
blob
|
history
diff --git
a/src/gui/util/qcompleter.cpp
b/src/gui/util/qcompleter.cpp
index
90f86b8
..
76d2308
100644
(file)
--- 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<QDirModel *>(source) !=
0
);
+ isDirModel = (qobject_cast<QDirModel *>(source) !=
Q_NULLPTR
);
#endif
#ifndef QT_NO_FILESYSTEMMODEL
- isFsModel = (qobject_cast<QFileSystemModel *>(source) !=
0
);
+ isFsModel = (qobject_cast<QFileSystemModel *>(source) !=
Q_NULLPTR
);
#endif
QVector<int> v;
QIndexMapper im(v);