Index: webrtc/base/natsocketfactory.cc |
diff --git a/webrtc/base/natsocketfactory.cc b/webrtc/base/natsocketfactory.cc |
index 0abd2a1b056d80b600a667cabbb59b4637e0a2e8..985748cff9034b32d476e7f1c0a9c61a68fbdab6 100644 |
--- a/webrtc/base/natsocketfactory.cc |
+++ b/webrtc/base/natsocketfactory.cc |
@@ -141,7 +141,7 @@ class NATSocket : public AsyncSocket, public sigslot::has_slots<> { |
return socket_->SendTo(data, size, addr); |
} |
// This array will be too large for IPv4 packets, but only by 12 bytes. |
- scoped_ptr<char[]> buf(new char[size + kNATEncodedIPv6AddressSize]); |
+ std::unique_ptr<char[]> buf(new char[size + kNATEncodedIPv6AddressSize]); |
size_t addrlength = PackAddressForNAT(buf.get(), |
size + kNATEncodedIPv6AddressSize, |
addr); |