QSet: remove misleading bool comparison with 0
Q6Hash::remove() returns a bool, not an integer, like Q5Hash::remove() did. Pick-to: 6.8 6.5 Change-Id: Ia2907c7a2a4177f9b5ad05ca1ef3b9a5baa8137a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 441a96ba16794dc8621219be705800480654e9e8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
e26acf0f27
commit
e54ece9dbb
@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
inline void clear() { q_hash.clear(); }
|
inline void clear() { q_hash.clear(); }
|
||||||
|
|
||||||
inline bool remove(const T &value) { return q_hash.remove(value) != 0; }
|
bool remove(const T &value) { return q_hash.remove(value); }
|
||||||
|
|
||||||
template <typename Pred>
|
template <typename Pred>
|
||||||
inline qsizetype removeIf(Pred predicate)
|
inline qsizetype removeIf(Pred predicate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user