diff options
Diffstat (limited to 'src/corelib/thread/qthread.h')
-rw-r--r-- | src/corelib/thread/qthread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/thread/qthread.h b/src/corelib/thread/qthread.h index 1f98cb59af..3df76077e1 100644 --- a/src/corelib/thread/qthread.h +++ b/src/corelib/thread/qthread.h @@ -113,7 +113,7 @@ public: bool event(QEvent *event) override; int loopLevel() const; -#ifdef Q_QDOC +#ifdef Q_CLANG_QDOC template <typename Function, typename... Args> static QThread *create(Function &&f, Args &&... args); template <typename Function> @@ -128,7 +128,7 @@ public: static QThread *create(Function &&f); # endif // QTHREAD_HAS_VARIADIC_CREATE # endif // QT_CONFIG(cxx11_future) -#endif // Q_QDOC +#endif // Q_CLANG_QDOC public Q_SLOTS: void start(Priority = InheritPriority); @@ -169,7 +169,7 @@ private: #if QT_CONFIG(cxx11_future) -#if defined(QTHREAD_HAS_VARIADIC_CREATE) +#if defined(QTHREAD_HAS_VARIADIC_CREATE) || defined(Q_CLANG_QDOC) // C++17: std::thread's constructor complying call template <typename Function, typename... Args> QThread *QThread::create(Function &&f, Args &&... args) |