Changeset 168252 in webkit


Ignore:
Timestamp:
May 4, 2014 6:16:18 PM (10 years ago)
Author:
gyuyoung.kim@samsung.com
Message:

Use std::unique_ptr in m_taskTimer of Notification class
https://bugs.webkit.org/show_bug.cgi?id=132544

Reviewed by Andreas Kling.

No new tests, no behavior change.

  • Modules/notifications/Notification.cpp:

(WebCore::Notification::Notification):

  • Modules/notifications/Notification.h: Use std::unique_ptr instead of OwnPtr.
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r168249 r168252  
     12014-05-04  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Use std::unique_ptr in m_taskTimer of Notification class
     4        https://bugs.webkit.org/show_bug.cgi?id=132544
     5
     6        Reviewed by Andreas Kling.
     7
     8        No new tests, no behavior change.
     9
     10        * Modules/notifications/Notification.cpp:
     11        (WebCore::Notification::Notification):
     12        * Modules/notifications/Notification.h: Use std::unique_ptr instead of OwnPtr.
     13
    1142014-05-04  Tim Horton  <timothy_horton@apple.com>
    215
  • trunk/Source/WebCore/Modules/notifications/Notification.cpp

    r165723 r168252  
    8585    , m_title(title)
    8686    , m_state(Idle)
    87     , m_taskTimer(adoptPtr(new Timer<Notification>(this, &Notification::taskTimerFired)))
     87    , m_taskTimer(std::make_unique<Timer<Notification>>(this, &Notification::taskTimerFired))
    8888{
    8989    m_notificationCenter = DOMWindowNotifications::webkitNotifications(toDocument(context).domWindow());
  • trunk/Source/WebCore/Modules/notifications/Notification.h

    r165723 r168252  
    4141#include "TextDirection.h"
    4242#include "ThreadableLoaderClient.h"
    43 #include <wtf/OwnPtr.h>
    4443#include <wtf/PassRefPtr.h>
    4544#include <wtf/RefCounted.h>
     
    182181
    183182#if ENABLE(NOTIFICATIONS)
    184     OwnPtr<Timer<Notification>> m_taskTimer;
     183    std::unique_ptr<Timer<Notification>> m_taskTimer;
    185184#endif
    186185};
Note: See TracChangeset for help on using the changeset viewer.