diff options
Diffstat (limited to 'src/qdoc/doc.cpp')
-rw-r--r-- | src/qdoc/doc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qdoc/doc.cpp b/src/qdoc/doc.cpp index 979bf9f2a..e460b2865 100644 --- a/src/qdoc/doc.cpp +++ b/src/qdoc/doc.cpp @@ -2577,7 +2577,7 @@ QString DocParser::getCode(int cmd, CodeMarker *marker, const QString &argStr) int indent = indentLevel(code); code = unindent(indent, code); - if (!marker) + if (marker == nullptr) marker = CodeMarker::markerForCode(code); return marker->markedUpCode(code, nullptr, location()); } @@ -3389,7 +3389,7 @@ QString Doc::canonicalTitle(const QString &title) void Doc::detach() { - if (!priv) { + if (priv == nullptr) { priv = new DocPrivate; return; } |