| Index: third_party/WebKit/Source/wtf/HashSetTest.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/HashSetTest.cpp b/third_party/WebKit/Source/wtf/HashSetTest.cpp
|
| index 87db991bef9d5fc9826f08189e15935ff25e6f82..38046b19e581087d08a8c7101a03d595e6f421dc 100644
|
| --- a/third_party/WebKit/Source/wtf/HashSetTest.cpp
|
| +++ b/third_party/WebKit/Source/wtf/HashSetTest.cpp
|
| @@ -208,11 +208,19 @@ public:
|
| static int* const kDeletedValue;
|
|
|
| explicit CountCopy(int* counter = nullptr) : m_counter(counter) { }
|
| - CountCopy(const CountCopy& other) : m_counter(other.m_counter)
|
| + CountCopy(const CountCopy& other)
|
| + : m_counter(other.m_counter)
|
| {
|
| if (m_counter && m_counter != kDeletedValue)
|
| ++*m_counter;
|
| }
|
| + CountCopy& operator=(const CountCopy& other)
|
| + {
|
| + m_counter = other.m_counter;
|
| + if (m_counter && m_counter != kDeletedValue)
|
| + ++*m_counter;
|
| + return *this;
|
| + }
|
| const int* counter() const { return m_counter; }
|
|
|
| private:
|
|
|