From b2cc37cedef95b4dd9c33753f2e8d4737dfa56b8 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 23 Jun 2019 16:12:43 +0000 Subject: [PATCH] move inline QSet::reserve() to class scope Signed-off-by: Ivailo Monev --- src/core/tools/qset.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/tools/qset.h b/src/core/tools/qset.h index 5718eca51..54afd6fd5 100644 --- a/src/core/tools/qset.h +++ b/src/core/tools/qset.h @@ -68,7 +68,8 @@ public: inline bool isEmpty() const { return q_hash.isEmpty(); } inline int capacity() const { return q_hash.capacity(); } - inline void reserve(int size); + inline void reserve(int size) { q_hash.reserve(size); } + inline void squeeze() { q_hash.squeeze(); } inline void detach() { q_hash.detach(); } @@ -216,9 +217,6 @@ private: Hash q_hash; }; -template -Q_INLINE_TEMPLATE void QSet::reserve(int asize) { q_hash.reserve(asize); } - template Q_INLINE_TEMPLATE QSet &QSet::unite(const QSet &other) {