Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2816)

Unified Diff: ppapi/shared_impl/compositor_layer_data.cc

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/compositor_layer_data.h ('k') | ppapi/shared_impl/media_stream_buffer_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/compositor_layer_data.cc
diff --git a/ppapi/shared_impl/compositor_layer_data.cc b/ppapi/shared_impl/compositor_layer_data.cc
index a4b51d379c9a1906fa2aef165fd73d153e8a8797..73ad43bc35a8033e50d39fc07ce3a7a0cb8c9d91 100644
--- a/ppapi/shared_impl/compositor_layer_data.cc
+++ b/ppapi/shared_impl/compositor_layer_data.cc
@@ -8,8 +8,8 @@ namespace ppapi {
namespace {
-template<typename T>
-void Copy(scoped_ptr<T>* a, const scoped_ptr<T>& b) {
+template <typename T>
+void Copy(std::unique_ptr<T>* a, const std::unique_ptr<T>& b) {
if (b) {
if (!(*a))
a->reset(new T());
« no previous file with comments | « ppapi/shared_impl/compositor_layer_data.h ('k') | ppapi/shared_impl/media_stream_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698