Changeset 167590 in webkit
- Timestamp:
- Apr 21, 2014, 3:39:51 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
platform/RemoteCommandListener.cpp (modified) (1 diff)
-
platform/RemoteCommandListener.h (modified) (1 diff)
-
platform/ios/RemoteCommandListenerIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167589 r167590 1 2014-04-21 Zan Dobersek <zdobersek@igalia.com> 2 3 iOS and non-iOS RemoteCommandListener::create() functions should use std::make_unique<>() 4 https://bugs.webkit.org/show_bug.cgi?id=131916 5 6 Reviewed by Darin Adler. 7 8 A follow-up to r167197. Make RemoteCommandListener ctor public and use std::make_unique<>() 9 in both versions of RemoteCommandListener::create() functions (iOS and non-iOS). 10 11 * platform/RemoteCommandListener.cpp: 12 (WebCore::RemoteCommandListener::create): 13 * platform/RemoteCommandListener.h: 14 (WebCore::RemoteCommandListener::RemoteCommandListener): 15 * platform/ios/RemoteCommandListenerIOS.mm: 16 (WebCore::RemoteCommandListener::create): 17 1 18 2014-04-21 Andreas Kling <akling@apple.com> 2 19 -
trunk/Source/WebCore/platform/RemoteCommandListener.cpp
r167197 r167590 32 32 std::unique_ptr<RemoteCommandListener> RemoteCommandListener::create(RemoteCommandListenerClient& client) 33 33 { 34 return std:: unique_ptr<RemoteCommandListener>(new RemoteCommandListener(client));34 return std::make_unique<RemoteCommandListener>(client); 35 35 } 36 36 #endif -
trunk/Source/WebCore/platform/RemoteCommandListener.h
r165676 r167590 40 40 public: 41 41 static std::unique_ptr<RemoteCommandListener> create(RemoteCommandListenerClient&); 42 RemoteCommandListener(RemoteCommandListenerClient& client) : m_client(client) { } 42 43 virtual ~RemoteCommandListener() { } 43 44 44 45 protected: 45 RemoteCommandListener(RemoteCommandListenerClient& client) : m_client(client) { };46 47 46 RemoteCommandListenerClient& m_client; 48 47 }; -
trunk/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm
r167196 r167590 42 42 std::unique_ptr<RemoteCommandListener> RemoteCommandListener::create(RemoteCommandListenerClient& client) 43 43 { 44 return std:: unique_ptr<RemoteCommandListener>(new RemoteCommandListenerIOS(client));44 return std::make_unique<RemoteCommandListenerIOS>(client); 45 45 } 46 46
Note:
See TracChangeset
for help on using the changeset viewer.