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()); |