Changeset 197532 in webkit
- Timestamp:
- Mar 3, 2016, 4:54:21 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r197527 r197532 1 2016-03-03 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 3 Use std::make_unique<> when creating std::unique_ptr<> 4 https://bugs.webkit.org/show_bug.cgi?id=154574 5 6 Reviewed by Darin Adler. 7 8 * NetworkProcess/cache/NetworkCacheStatistics.cpp: 9 (WebKit::NetworkCache::Statistics::open): 10 * NetworkProcess/cache/NetworkCacheStatistics.h: 11 * WebProcess/WebCoreSupport/WebChromeClient.cpp: 12 (WebKit::WebChromeClient::createColorChooser): 13 1 14 2016-03-03 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.cpp
r194496 r197532 79 79 80 80 String databasePath = WebCore::pathByAppendingComponent(cachePath, StatisticsDatabaseName); 81 return std:: unique_ptr<Statistics>(new Statistics(databasePath));81 return std::make_unique<Statistics>(databasePath); 82 82 } 83 83 -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.h
r183081 r197532 45 45 public: 46 46 static std::unique_ptr<Statistics> open(const String& cachePath); 47 explicit Statistics(const String& databasePath); 47 48 48 49 void clear(); … … 56 57 57 58 private: 58 explicit Statistics(const String& databasePath);59 60 59 WorkQueue& serialBackgroundIOQueue() { return m_serialBackgroundIOQueue.get(); } 61 60 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
r197478 r197532 702 702 std::unique_ptr<ColorChooser> WebChromeClient::createColorChooser(ColorChooserClient* client, const Color& initialColor) 703 703 { 704 return std:: unique_ptr<WebColorChooser>(new WebColorChooser(m_page, client, initialColor));704 return std::make_unique<WebColorChooser>(m_page, client, initialColor); 705 705 } 706 706 #endif
Note:
See TracChangeset
for help on using the changeset viewer.