Make QFreeList constexpr

It's still not a literal type because the destructor is not constexpr

Change-Id: If89bdfdd3f0ffe9bdd5a7953e872e520e92cfd66
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Thiago Macieira 2014-06-28 17:58:18 -07:00
parent 62620a4d6a
commit 4b28152da6

View File

@ -191,7 +191,7 @@ class QFreeList
Q_DISABLE_COPY(QFreeList)
public:
inline QFreeList();
Q_DECL_CONSTEXPR inline QFreeList();
inline ~QFreeList();
// returns the payload for the given index \a x
@ -207,7 +207,7 @@ public:
};
template <typename T, typename ConstantsType>
inline QFreeList<T, ConstantsType>::QFreeList()
Q_DECL_CONSTEXPR inline QFreeList<T, ConstantsType>::QFreeList()
: _next(ConstantsType::InitialNextValue)
{ }