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

Changeset 244768 in webkit


Ignore:
Timestamp:
Apr 30, 2019, 7:32:43 AM (7 years ago)
Author:
Michael Catanzaro
Message:

WebCore::StyleColorScheme should not have explicitly-declared copy constructor
https://bugs.webkit.org/show_bug.cgi?id=197412

Reviewed by Don Olmstead.

Either we need to explicitly declare a copy assignment operator here, or the copy
constructor needs to be removed. Having one without the other causes a huge warning spam
with GCC 9. In this case, the copy constructor is redundant because it's identical to an
implicitly-declared copy constructor, so let's just remove it.

  • rendering/style/StyleColorScheme.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r244766 r244768  
     12019-04-30  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        WebCore::StyleColorScheme should not have explicitly-declared copy constructor
     4        https://bugs.webkit.org/show_bug.cgi?id=197412
     5
     6        Reviewed by Don Olmstead.
     7
     8        Either we need to explicitly declare a copy assignment operator here, or the copy
     9        constructor needs to be removed. Having one without the other causes a huge warning spam
     10        with GCC 9. In this case, the copy constructor is redundant because it's identical to an
     11        implicitly-declared copy constructor, so let's just remove it.
     12
     13        * rendering/style/StyleColorScheme.h:
     14
    1152019-04-30  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/rendering/style/StyleColorScheme.h

    r244408 r244768  
    3737    StyleColorScheme() { }
    3838
    39     StyleColorScheme(const StyleColorScheme& other)
    40         : m_colorScheme(other.m_colorScheme)
    41         , m_allowsTransformations(other.m_allowsTransformations)
    42     { }
    43 
    4439    StyleColorScheme(OptionSet<ColorScheme> colorScheme, bool allowsTransformations)
    4540        : m_colorScheme(colorScheme)
Note: See TracChangeset for help on using the changeset viewer.