Changeset 168252 in webkit
- Timestamp:
- May 4, 2014 6:16:18 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r168249 r168252 1 2014-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 1 14 2014-05-04 Tim Horton <timothy_horton@apple.com> 2 15 -
trunk/Source/WebCore/Modules/notifications/Notification.cpp
r165723 r168252 85 85 , m_title(title) 86 86 , m_state(Idle) 87 , m_taskTimer( adoptPtr(new Timer<Notification>(this, &Notification::taskTimerFired)))87 , m_taskTimer(std::make_unique<Timer<Notification>>(this, &Notification::taskTimerFired)) 88 88 { 89 89 m_notificationCenter = DOMWindowNotifications::webkitNotifications(toDocument(context).domWindow()); -
trunk/Source/WebCore/Modules/notifications/Notification.h
r165723 r168252 41 41 #include "TextDirection.h" 42 42 #include "ThreadableLoaderClient.h" 43 #include <wtf/OwnPtr.h>44 43 #include <wtf/PassRefPtr.h> 45 44 #include <wtf/RefCounted.h> … … 182 181 183 182 #if ENABLE(NOTIFICATIONS) 184 OwnPtr<Timer<Notification>> m_taskTimer;183 std::unique_ptr<Timer<Notification>> m_taskTimer; 185 184 #endif 186 185 };
Note: See TracChangeset
for help on using the changeset viewer.