⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 220054 in webkit


Ignore:
Timestamp:
Jul 30, 2017, 11:59:59 PM (9 years ago)
Author:
zandobersek@gmail.com
Message:

Unreviewed. Suppress the -Wextra compiler warning when building with GCC 6.3.0,
explicitly initializing the RefCounted<> base class in the
FetchHeaders(const FetchHeaders&) constructor.

Note that while that's the signature of the copy constructor for the FetchHeaders
class, the base RefCounted<> class is not copyable, so the default RefCounted<>
constructor is used, but the FetchHeaders resources are normally copied into the
new object from the one that's passed in.

  • Modules/fetch/FetchHeaders.h:

(WebCore::FetchHeaders::FetchHeaders):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220052 r220054  
     12017-07-30  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Unreviewed. Suppress the -Wextra compiler warning when building with GCC 6.3.0,
     4        explicitly initializing the RefCounted<> base class in the
     5        FetchHeaders(const FetchHeaders&) constructor.
     6
     7        Note that while that's the signature of the copy constructor for the FetchHeaders
     8        class, the base RefCounted<> class is not copyable, so the default RefCounted<>
     9        constructor is used, but the FetchHeaders resources are normally copied into the
     10        new object from the one that's passed in.
     11
     12        * Modules/fetch/FetchHeaders.h:
     13        (WebCore::FetchHeaders::FetchHeaders):
     14
    1152017-07-30  Darin Adler  <darin@apple.com>
    216
  • trunk/Source/WebCore/Modules/fetch/FetchHeaders.h

    r220050 r220054  
    101101
    102102inline FetchHeaders::FetchHeaders(const FetchHeaders& other)
    103     : m_guard(other.m_guard)
     103    : RefCounted<FetchHeaders>()
     104    , m_guard(other.m_guard)
    104105    , m_headers(other.m_headers)
    105106{
Note: See TracChangeset for help on using the changeset viewer.