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>
bb10
Olivier Goffart 2016-03-16 10:26:40 +01:00 committed by Olivier Goffart (Woboq GmbH)
parent 2425465791
commit 0fef402d7f
1 changed files with 3 additions and 9 deletions

View File

@ -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