summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstringview.h
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-01-04 11:23:37 +0100
committerMartin Smith <martin.smith@qt.io>2018-01-05 20:22:13 +0000
commit66a0fecfaeb85f5c7fe49e55289ec758aadc9eff (patch)
tree3611b77ef9cf3b2c3f860d93c119a710083b0515 /src/corelib/tools/qstringview.h
parent81e4d039a914c00e740e2faf841b1324405fd586 (diff)
doc: Correct remaining qdoc warnings in QStringView
Added missing template clause to \fn commands required by clang-qdoc. Changed a few Q_QDOC macros to Q_CLANG_QDOC. Change-Id: I20e6855b13df6384b471fc2bb5de27b0e3b44d1b Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/corelib/tools/qstringview.h')
-rw-r--r--src/corelib/tools/qstringview.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qstringview.h b/src/corelib/tools/qstringview.h
index 480021a165..4f7d48fe1d 100644
--- a/src/corelib/tools/qstringview.h
+++ b/src/corelib/tools/qstringview.h
@@ -183,7 +183,7 @@ public:
Q_DECL_CONSTEXPR QStringView(const Char *f, const Char *l)
: QStringView(f, l - f) {}
-#ifdef Q_QDOC
+#ifdef Q_CLANG_QDOC
template <typename Char, size_t N>
Q_DECL_CONSTEXPR QStringView(const Char (&array)[N]) Q_DECL_NOTHROW;
@@ -199,7 +199,7 @@ public:
: QStringView(str, str ? lengthHelperPointer(str) : 0) {}
#endif
-#ifdef Q_QDOC
+#ifdef Q_CLANG_QDOC
QStringView(const QString &str) Q_DECL_NOTHROW;
QStringView(const QStringRef &str) Q_DECL_NOTHROW;
#else