Index: webrtc/base/natserver.cc |
diff --git a/webrtc/base/natserver.cc b/webrtc/base/natserver.cc |
index b071e014dbdf37429c4f43cae2ef9200c8d9b371..222d2709e2745b0bfc0c4c8994f5124b098bf971 100644 |
--- a/webrtc/base/natserver.cc |
+++ b/webrtc/base/natserver.cc |
@@ -8,6 +8,8 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
+#include <memory> |
+ |
#include "webrtc/base/natsocketfactory.h" |
#include "webrtc/base/natserver.h" |
#include "webrtc/base/logging.h" |
@@ -195,7 +197,7 @@ void NATServer::OnExternalUDPPacket( |
// Forward this packet to the internal address. |
// First prepend the address in a quasi-STUN format. |
- scoped_ptr<char[]> real_buf(new char[size + kNATEncodedIPv6AddressSize]); |
+ std::unique_ptr<char[]> real_buf(new char[size + kNATEncodedIPv6AddressSize]); |
size_t addrlength = PackAddressForNAT(real_buf.get(), |
size + kNATEncodedIPv6AddressSize, |
remote_addr); |