From 0fef402d7f4acc22ac4c8a6004cce25ee96105c6 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 16 Mar 2016 10:26:40 +0100 Subject: [PATCH] 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 --- src/corelib/tools/qalgorithms.h | 12 +++--------- 1 file 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 -LessThan qLess() -{ -} - -template -LessThan qGreater() -{ -} +typedef void* LessThan; +template LessThan qLess(); +template LessThan qGreater(); #else template class QT_DEPRECATED_X("Use std::less") qLess