Replace the remaining scoped_ptr with unique_ptr in webrtc/modules/
BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1921233002 Cr-Commit-Position: refs/heads/master@{#12511}
This commit is contained in:
@ -12,8 +12,9 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "webrtc/base/logging.h"
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/byte_io.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h"
|
||||
|
||||
@ -87,7 +88,7 @@ int32_t FecReceiverImpl::AddReceivedRedPacket(
|
||||
// Add to list without RED header, aka a virtual RTP packet
|
||||
// we remove the RED header
|
||||
|
||||
rtc::scoped_ptr<ForwardErrorCorrection::ReceivedPacket> received_packet(
|
||||
std::unique_ptr<ForwardErrorCorrection::ReceivedPacket> received_packet(
|
||||
new ForwardErrorCorrection::ReceivedPacket);
|
||||
received_packet->pkt = new ForwardErrorCorrection::Packet;
|
||||
|
||||
@ -135,7 +136,7 @@ int32_t FecReceiverImpl::AddReceivedRedPacket(
|
||||
}
|
||||
++packet_counter_.num_packets;
|
||||
|
||||
rtc::scoped_ptr<ForwardErrorCorrection::ReceivedPacket>
|
||||
std::unique_ptr<ForwardErrorCorrection::ReceivedPacket>
|
||||
second_received_packet;
|
||||
if (blockLength > 0) {
|
||||
// handle block length, split into 2 packets
|
||||
|
||||
Reference in New Issue
Block a user