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

Unified Diff: webrtc/test/testsupport/fileutils.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
« no previous file with comments | « webrtc/test/test_suite.h ('k') | webrtc/tools/agc/activity_metric.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/testsupport/fileutils.cc
diff --git a/webrtc/test/testsupport/fileutils.cc b/webrtc/test/testsupport/fileutils.cc
index 2fab425a3166430ca76a1d8fc98bdbd11ce3c147..d99b990918cab464879f313b165f68d9070b447a 100644
--- a/webrtc/test/testsupport/fileutils.cc
+++ b/webrtc/test/testsupport/fileutils.cc
@@ -23,7 +23,6 @@
#else
#include <unistd.h>
-#include "webrtc/base/scoped_ptr.h"
#define GET_CURRENT_DIR getcwd
#endif
@@ -36,6 +35,8 @@
#include <stdlib.h>
#include <string.h>
+#include <memory>
+
#include "webrtc/typedefs.h" // For architecture defines
namespace webrtc {
@@ -183,7 +184,7 @@ std::string TempFilename(const std::string &dir, const std::string &prefix) {
return "";
#else
int len = dir.size() + prefix.size() + 2 + 6;
- rtc::scoped_ptr<char[]> tempname(new char[len]);
+ std::unique_ptr<char[]> tempname(new char[len]);
snprintf(tempname.get(), len, "%s/%sXXXXXX", dir.c_str(),
prefix.c_str());
« no previous file with comments | « webrtc/test/test_suite.h ('k') | webrtc/tools/agc/activity_metric.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698