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

Changeset 283287 in webkit


Ignore:
Timestamp:
Sep 29, 2021, 5:21:20 PM (5 years ago)
Author:
basuke.suzuki@sony.com
Message:

Suppress warnings for implicit copy assignment operator/copy constructor with clang 13
https://bugs.webkit.org/show_bug.cgi?id=230963

Reviewed by Mark Lam.

Source/JavaScriptCore:

Added default copy constructor to suppress warning.

  • bytecode/Operands.h:

Source/WebCore:

No new tests because there is no behavior change.

Added default copy constructor / copy assignment operator to suppress warning.

  • platform/LayoutUnit.h:
  • platform/LengthBox.h:
  • platform/RectEdges.h:
  • platform/graphics/FontSelectionAlgorithm.h:
  • platform/graphics/ImagePaintingOptions.h:
Location:
trunk/Source
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r283286 r283287  
     12021-09-29  Basuke Suzuki  <basuke.suzuki@sony.com>
     2
     3        Suppress warnings for implicit copy assignment operator/copy constructor with clang 13
     4        https://bugs.webkit.org/show_bug.cgi?id=230963
     5
     6        Reviewed by Mark Lam.
     7
     8        Added default copy constructor to suppress warning.
     9
     10        * bytecode/Operands.h:
     11
    1122021-09-29  Basuke Suzuki  <basuke.suzuki@sony.com>
    213
  • trunk/Source/JavaScriptCore/bytecode/Operands.h

    r276224 r283287  
    6969    static Operand tmp(uint32_t index) { return Operand(OperandKind::Tmp, index); }
    7070
     71    Operand& operator=(const Operand&) = default;
     72
    7173    OperandKind kind() const { return m_kind; }
    7274    int value() const { return m_operand; }
  • trunk/Source/WebCore/ChangeLog

    r283279 r283287  
     12021-09-29  Basuke Suzuki  <basuke.suzuki@sony.com>
     2
     3        Suppress warnings for implicit copy assignment operator/copy constructor with clang 13
     4        https://bugs.webkit.org/show_bug.cgi?id=230963
     5
     6        Reviewed by Mark Lam.
     7
     8        No new tests because there is no behavior change.
     9
     10        Added default copy constructor / copy assignment operator to suppress warning.
     11
     12        * platform/LayoutUnit.h:
     13        * platform/LengthBox.h:
     14        * platform/RectEdges.h:
     15        * platform/graphics/FontSelectionAlgorithm.h:
     16        * platform/graphics/ImagePaintingOptions.h:
     17
    1182021-09-29  Kiet Ho  <tho22@apple.com>
    219
  • trunk/Source/WebCore/platform/LayoutUnit.h

    r280632 r283287  
    6666public:
    6767    LayoutUnit() : m_value(0) { }
     68    LayoutUnit(const LayoutUnit&) = default;
    6869    LayoutUnit(int value) { setValue(value); }
    6970    LayoutUnit(unsigned short value) { setValue(value); }
     
    8687    }
    8788
    88     LayoutUnit& operator=(const LayoutUnit& other) = default;
     89    LayoutUnit& operator=(const LayoutUnit&) = default;
    8990    LayoutUnit& operator=(const float& other) { return *this = LayoutUnit(other); }
    9091
  • trunk/Source/WebCore/platform/LengthBox.h

    r276138 r283287  
    5656
    5757    LengthBox(const LengthBox&) = default;
     58    LengthBox& operator=(const LengthBox&) = default;
    5859
    5960    bool isZero() const
  • trunk/Source/WebCore/platform/RectEdges.h

    r278985 r283287  
    4747
    4848    RectEdges(const RectEdges&) = default;
     49    RectEdges& operator=(const RectEdges&) = default;
    4950
    5051    template<typename U>
  • trunk/Source/WebCore/platform/graphics/FontSelectionAlgorithm.h

    r278340 r283287  
    427427    using Range = FontSelectionRange;
    428428
     429    FontSelectionCapabilities() = default;
     430    FontSelectionCapabilities(const FontSelectionCapabilities&) = default;
    429431    FontSelectionCapabilities& operator=(const FontSelectionCapabilities&) = default;
    430432
  • trunk/Source/WebCore/platform/graphics/ImagePaintingOptions.h

    r278253 r283287  
    4848    ImagePaintingOptions() = default;
    4949    ImagePaintingOptions(const ImagePaintingOptions&) = default;
     50    ImagePaintingOptions& operator=(const ImagePaintingOptions&) = default;
    5051
    5152    CompositeOperator compositeOperator() const { return m_compositeOperator; }
Note: See TracChangeset for help on using the changeset viewer.