Replace auto_ptr usage with unique_ptr.

Change-Id: I4061686fa4739b4e5c32dfaac341dfba393dd254
This commit is contained in:
Tom Finegan 2016-01-26 13:02:11 -08:00
parent e569ab0f7c
commit c32f970f54
3 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ int main(int argc, char* argv[]) {
return -1;
}
const std::auto_ptr<seg_t> pSegment(pSegment_);
const std::unique_ptr<seg_t> pSegment(pSegment_);
ret = pSegment->Load();
if (ret < 0) {

View File

@ -261,7 +261,7 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;
}
const std::auto_ptr<mkvparser::Segment> parser_segment(parser_segment_);
const std::unique_ptr<mkvparser::Segment> parser_segment(parser_segment_);
ret = parser_segment->Load();
if (ret < 0) {
printf("\n Segment::Load() failed.");

View File

@ -26,7 +26,7 @@ namespace vttdemux {
typedef long long mkvtime_t; // NOLINT
typedef long long mkvpos_t; // NOLINT
typedef std::auto_ptr<mkvparser::Segment> segment_ptr_t;
typedef std::unique_ptr<mkvparser::Segment> segment_ptr_t;
// WebVTT metadata tracks have a type (encoded in the CodecID for the track).
// We use |type| to synthesize a filename for the out-of-band WebVTT |file|.