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

Unified Diff: media/formats/mp2t/ts_packet.cc

Issue 1874413003: Convert media/formats to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: media/formats/mp2t/ts_packet.cc
diff --git a/media/formats/mp2t/ts_packet.cc b/media/formats/mp2t/ts_packet.cc
index 2c03cb6ecd22f48e0d3490ff306595e6cb0eca20..9d19b2290af9d3305911e47f97e30b63720b81ea 100644
--- a/media/formats/mp2t/ts_packet.cc
+++ b/media/formats/mp2t/ts_packet.cc
@@ -4,7 +4,8 @@
#include "media/formats/mp2t/ts_packet.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "media/base/bit_reader.h"
#include "media/formats/mp2t/mp2t_common.h"
@@ -58,7 +59,7 @@ TsPacket* TsPacket::Parse(const uint8_t* buf, int size) {
return NULL;
}
- scoped_ptr<TsPacket> ts_packet(new TsPacket());
+ std::unique_ptr<TsPacket> ts_packet(new TsPacket());
bool status = ts_packet->ParseHeader(buf);
if (!status) {
DVLOG(1) << "Parsing header failed";

Powered by Google App Engine
This is Rietveld 408576698