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

Changeset 243479 in webkit


Ignore:
Timestamp:
Mar 25, 2019, 6:36:52 PM (7 years ago)
Author:
Fujii Hironori
Message:

Enable IPC sending and receiving non-default-constructible types
https://bugs.webkit.org/show_bug.cgi?id=196132
<rdar://problem/49229221>

Unreviewed build fix for WinCairo port.

error C2440: '=': cannot convert from 'int' to 'HANDLE'

  • Platform/win/SharedMemoryWin.cpp:

(WebKit::SharedMemory::Handle::Handle): std::exchange HANDLE with nullptr, not 0.
(WebKit::SharedMemory::Handle::operator=): Ditto.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r243475 r243479  
     12019-03-25  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        Enable IPC sending and receiving non-default-constructible types
     4        https://bugs.webkit.org/show_bug.cgi?id=196132
     5        <rdar://problem/49229221>
     6
     7        Unreviewed build fix for WinCairo port.
     8
     9        error C2440: '=': cannot convert from 'int' to 'HANDLE'
     10
     11        * Platform/win/SharedMemoryWin.cpp:
     12        (WebKit::SharedMemory::Handle::Handle): std::exchange HANDLE with nullptr, not 0.
     13        (WebKit::SharedMemory::Handle::operator=): Ditto.
     14
    1152019-03-25  Fujii Hironori  <Hironori.Fujii@sony.com>
    216
  • trunk/Source/WebKit/Platform/win/SharedMemoryWin.cpp

    r243460 r243479  
    4242SharedMemory::Handle::Handle(Handle&& other)
    4343{
    44     m_handle = std::exchange(other.m_handle, 0);
     44    m_handle = std::exchange(other.m_handle, nullptr);
    4545    m_size = std::exchange(other.m_size, 0);
    4646}
     
    4848auto SharedMemory::Handle::operator=(Handle&& other) -> Handle&
    4949{
    50     m_handle = std::exchange(other.m_handle, 0);
     50    m_handle = std::exchange(other.m_handle, nullptr);
    5151    m_size = std::exchange(other.m_size, 0);
    5252    return *this;
Note: See TracChangeset for help on using the changeset viewer.