Changeset 245202 in webkit


Ignore:
Timestamp:
May 10, 2019 5:39:58 PM (5 years ago)
Author:
sbarati@apple.com
Message:

Bag's move operator= leaks memory
https://bugs.webkit.org/show_bug.cgi?id=197757

Reviewed by Keith Miller.

It was unused. So I'm just removing it. We can implement it properly
if we ever need it.

  • wtf/Bag.h:

(WTF::Bag::operator=): Deleted.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r245186 r245202  
     12019-05-10  Saam barati  <sbarati@apple.com>
     2
     3        Bag's move operator= leaks memory
     4        https://bugs.webkit.org/show_bug.cgi?id=197757
     5
     6        Reviewed by Keith Miller.
     7
     8        It was unused. So I'm just removing it. We can implement it properly
     9        if we ever need it.
     10
     11        * wtf/Bag.h:
     12        (WTF::Bag::operator=): Deleted.
     13
    1142019-05-10  Fujii Hironori  <Hironori.Fujii@sony.com>
    215
  • trunk/Source/WTF/wtf/Bag.h

    r242127 r245202  
    6666    }
    6767
    68     template<typename U>
    69     Bag& operator=(Bag<T, U>&& other)
    70     {
    71         m_head = other.unwrappedHead();
    72         other.m_head = nullptr;
    73         return *this;
    74     }
    75    
    7668    ~Bag()
    7769    {
Note: See TracChangeset for help on using the changeset viewer.