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

Unified Diff: webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc

Issue 1750533002: Replace scoped_ptr with unique_ptr in webrtc/modules/remote_bitrate_estimator/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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/modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc b/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc
index 2d89e191c3af3a68bf311011fe23989447899d87..08dc0e63a02a8112418db8ad13c44ae11378c8cb 100644
--- a/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc
+++ b/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp_play.cc
@@ -10,8 +10,9 @@
#include <stdio.h>
+#include <memory>
+
#include "webrtc/base/format_macros.h"
-#include "webrtc/base/scoped_ptr.h"
#include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h"
#include "webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.h"
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
@@ -48,9 +49,9 @@ int main(int argc, char** argv) {
&parser, &estimator, &estimator_used)) {
return -1;
}
- rtc::scoped_ptr<webrtc::test::RtpFileReader> rtp_reader(reader);
- rtc::scoped_ptr<webrtc::RtpHeaderParser> rtp_parser(parser);
- rtc::scoped_ptr<webrtc::RemoteBitrateEstimator> rbe(estimator);
+ std::unique_ptr<webrtc::test::RtpFileReader> rtp_reader(reader);
+ std::unique_ptr<webrtc::RtpHeaderParser> rtp_parser(parser);
+ std::unique_ptr<webrtc::RemoteBitrateEstimator> rbe(estimator);
// Process the file.
int packet_counter = 0;

Powered by Google App Engine
This is Rietveld 408576698