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
parent
2425465791
commit
0fef402d7f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue