summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppoverviewmodel.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-09-15 15:27:32 +0200
committerEike Ziller <eike.ziller@qt.io>2020-09-15 13:57:32 +0000
commit242579099a3fd31499e03b945e866e7159f4a1fb (patch)
tree25a1962b6b5901767a339f0a8103d00400bbdcba /src/plugins/cpptools/cppoverviewmodel.cpp
parent432247357edfcea96b2f6a66dd17f398e9e55575 (diff)
downloadqt-creator-242579099a3fd31499e03b945e866e7159f4a1fb.tar.gz
CppTools: Fix QStringRef and QSharedPointer related issues with Qt6
Task-number: QTCREATORBUG-24098 Change-Id: I97347ac3fb397fea8eee655e3cc4ee252c511885 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppoverviewmodel.cpp')
-rw-r--r--src/plugins/cpptools/cppoverviewmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppoverviewmodel.cpp b/src/plugins/cpptools/cppoverviewmodel.cpp
index 6fd9b161dc..74f4404b1b 100644
--- a/src/plugins/cpptools/cppoverviewmodel.cpp
+++ b/src/plugins/cpptools/cppoverviewmodel.cpp
@@ -132,7 +132,7 @@ QVariant SymbolItem::data(int /*column*/, int role) const
bool OverviewModel::hasDocument() const
{
- return _cppDocument;
+ return !_cppDocument.isNull();
}
int OverviewModel::globalSymbolCount() const