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

Unified Diff: webrtc/tools/frame_editing/frame_editing_lib.cc

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: 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
Index: webrtc/tools/frame_editing/frame_editing_lib.cc
diff --git a/webrtc/tools/frame_editing/frame_editing_lib.cc b/webrtc/tools/frame_editing/frame_editing_lib.cc
index 90855a354c039b440c86c914abad7e13af51f439..bb6a75edaab30e01850107de78a7ab6ea28bc8f1 100644
--- a/webrtc/tools/frame_editing/frame_editing_lib.cc
+++ b/webrtc/tools/frame_editing/frame_editing_lib.cc
@@ -11,9 +11,9 @@
#include <stdio.h>
#include <stdlib.h>
+#include <memory>
#include <string>
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "webrtc/tools/frame_editing/frame_editing_lib.h"
#include "webrtc/typedefs.h"
@@ -39,7 +39,7 @@ int EditFrames(const string& in_path, int width, int height,
// Frame size of I420.
size_t frame_length = CalcBufferSize(kI420, width, height);
- rtc::scoped_ptr<uint8_t[]> temp_buffer(new uint8_t[frame_length]);
+ std::unique_ptr<uint8_t[]> temp_buffer(new uint8_t[frame_length]);
FILE* out_fid = fopen(out_path.c_str(), "wb");
« no previous file with comments | « webrtc/tools/force_mic_volume_max/force_mic_volume_max.cc ('k') | webrtc/tools/frame_editing/frame_editing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698