Changeset 176269 in webkit


Ignore:
Timestamp:
Nov 18, 2014 11:10:21 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

[WinCairo] Compile errors when GStreamer is enabled.
https://bugs.webkit.org/show_bug.cgi?id=137000

Patch by peavo@outlook.com <peavo@outlook.com> on 2014-11-18
Reviewed by Philippe Normand.

MSVC does not allow the keyword default on move constructors and move assignment operators.

  • wtf/gobject/GMainLoopSource.cpp:

(WTF::GMainLoopSource::cancel):
(WTF::GMainLoopSource::socketCallback):

  • wtf/gobject/GMainLoopSource.h:

(WTF::GMainLoopSource::Context::operator=):

Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r176217 r176269  
     12014-11-18  peavo@outlook.com  <peavo@outlook.com>
     2
     3        [WinCairo] Compile errors when GStreamer is enabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=137000
     5
     6        Reviewed by Philippe Normand.
     7
     8        MSVC does not allow the keyword default on move constructors and move assignment operators.
     9
     10        * wtf/gobject/GMainLoopSource.cpp:
     11        (WTF::GMainLoopSource::cancel):
     12        (WTF::GMainLoopSource::socketCallback):
     13        * wtf/gobject/GMainLoopSource.h:
     14        (WTF::GMainLoopSource::Context::operator=):
     15
    1162014-11-17  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WTF/wtf/gobject/GMainLoopSource.cpp

    r174818 r176269  
    8181        return;
    8282
    83     Context context = WTF::move(m_context);
     83    Context context;
     84    context = WTF::move(m_context);
    8485    context.destroySource();
    8586}
     
    422423        return Stop;
    423424
    424     Context context = WTF::move(m_context);
     425    Context context;
     426    context = WTF::move(m_context);
    425427
    426428    ASSERT(context.socketCallback);
  • trunk/Source/WTF/wtf/gobject/GMainLoopSource.h

    r174818 r176269  
    7777    struct Context {
    7878        Context() = default;
    79         Context(Context&&) = default;
    80         Context& operator=(Context&&) = default;
     79        Context& operator=(Context&& c)
     80        {
     81            source = WTF::move(c.source);
     82            cancellable = WTF::move(c.cancellable);
     83            socketCancellable = WTF::move(c.socketCancellable);
     84            voidCallback = WTF::move(c.voidCallback);
     85            boolCallback = WTF::move(c.boolCallback);
     86            socketCallback = WTF::move(c.socketCallback);
     87            destroyCallback = WTF::move(c.destroyCallback);
     88            return *this;
     89        }
    8190
    8291        void destroySource();
Note: See TracChangeset for help on using the changeset viewer.