Changeset 249280 in webkit


Ignore:
Timestamp:
Aug 29, 2019 10:11:05 AM (5 years ago)
Author:
Chris Dumez
Message:

CompletionHandler default constructor does not initialize m_wasConstructedOnMainThread
https://bugs.webkit.org/show_bug.cgi?id=201249

Reviewed by Joseph Pecoraro and Alex Christensen.

  • wtf/CompletionHandler.h:

(WTF::CompletionHandler<Out):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r249273 r249280  
     12019-08-29  Chris Dumez  <cdumez@apple.com>
     2
     3        CompletionHandler default constructor does not initialize `m_wasConstructedOnMainThread`
     4        https://bugs.webkit.org/show_bug.cgi?id=201249
     5
     6        Reviewed by Joseph Pecoraro and Alex Christensen.
     7
     8        * wtf/CompletionHandler.h:
     9        (WTF::CompletionHandler<Out):
     10
    1112019-08-29  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WTF/wtf/CompletionHandler.h

    r248546 r249280  
    4343    CompletionHandler(CallableType&& callable)
    4444        : m_function(WTFMove(callable))
    45 #if !ASSERT_DISABLED
    46         , m_wasConstructedOnMainThread(isMainThread())
    47 #endif
    4845    {
    4946    }
     
    6966    Function<Out(In...)> m_function;
    7067#if !ASSERT_DISABLED
    71     bool m_wasConstructedOnMainThread;
     68    bool m_wasConstructedOnMainThread { isMainThread() };
    7269#endif
    7370};
Note: See TracChangeset for help on using the changeset viewer.