aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/codesnip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/codesnip.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/codesnip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/codesnip.cpp b/sources/shiboken6/ApiExtractor/codesnip.cpp
index 81977ceb1..f79c68ca8 100644
--- a/sources/shiboken6/ApiExtractor/codesnip.cpp
+++ b/sources/shiboken6/ApiExtractor/codesnip.cpp
@@ -14,7 +14,7 @@ using namespace Qt::StringLiterals;
QString TemplateInstance::expandCode() const
{
const auto templateEntry = TypeDatabase::instance()->findTemplate(m_name);
- if (templateEntry.isNull()) {
+ if (!templateEntry) {
const QString m = u"<insert-template> referring to non-existing template '"_s
+ m_name + u"'."_s;
throw Exception(m);