diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-02-22 11:35:34 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-02-26 09:32:51 +0000 |
commit | a126b566dc9c0cebb6ef6ddc337e7665a1ce54e8 (patch) | |
tree | 805b913b4040b8747b2c61228e27d327128e121b /src/3rdparty/masm/stubs | |
parent | f52b331e06136bf9d47ec2077626515c9008f97d (diff) |
Upgrade Yarr to latest version from WebKit
This is an upgrade to commit cbb0aa18662bc26da31de91e2104c030eaa6ead2 in
webkit. It causes some more ecmascript tests to pass.
Fixes: QTBUG-73915
Change-Id: I8bb5ff9b37907d17b1020576ba64f0b3aed2f1b3
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/3rdparty/masm/stubs')
-rw-r--r-- | src/3rdparty/masm/stubs/wtf/Vector.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/3rdparty/masm/stubs/wtf/Vector.h b/src/3rdparty/masm/stubs/wtf/Vector.h index f4f4dc5cf4..2fead9f6ba 100644 --- a/src/3rdparty/masm/stubs/wtf/Vector.h +++ b/src/3rdparty/masm/stubs/wtf/Vector.h @@ -109,6 +109,15 @@ public: inline bool isEmpty() const { return this->empty(); } inline T &last() { return *(this->begin() + this->size() - 1); } + + bool contains(const T &value) const + { + for (const T &inVector : *this) { + if (inVector == value) + return true; + } + return false; + } }; template <typename T, int capacity> |