diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2016-03-16 10:26:40 +0100 |
---|---|---|
committer | Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> | 2016-03-29 14:11:19 +0000 |
commit | 0fef402d7f4acc22ac4c8a6004cce25ee96105c6 (patch) | |
tree | b384956ff30b0efcb1ea6a80b36047c26fc31dd7 | |
parent | 2425465791e9216b75b88671436fd6bde7f2d92d (diff) |
Fix documentation of qLess and qGreater
While compiling with clang, everything has to be valid code. So the types
have to be correct
Change-Id: I73f5e493a19e27b1a459f92ea37480f3329a1c0a
Reviewed-by: Martin Smith <martin.smith@theqtcompany.com>
-rw-r--r-- | src/corelib/tools/qalgorithms.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/corelib/tools/qalgorithms.h b/src/corelib/tools/qalgorithms.h index 14465240b4..854276d150 100644 --- a/src/corelib/tools/qalgorithms.h +++ b/src/corelib/tools/qalgorithms.h @@ -142,15 +142,9 @@ QT_DEPRECATED_X("Use std::count") inline void qCount(const Container &container, } #ifdef Q_QDOC -template <typename T> -LessThan qLess() -{ -} - -template <typename T> -LessThan qGreater() -{ -} +typedef void* LessThan; +template <typename T> LessThan qLess(); +template <typename T> LessThan qGreater(); #else template <typename T> class QT_DEPRECATED_X("Use std::less") qLess |