Index: webrtc/p2p/base/stun.h |
diff --git a/webrtc/p2p/base/stun.h b/webrtc/p2p/base/stun.h |
index 028787c72aa9fd80c985bf156182803b221edcce..3e1c5268ef12c1655f5fe59070555faf5ff3951c 100644 |
--- a/webrtc/p2p/base/stun.h |
+++ b/webrtc/p2p/base/stun.h |
@@ -132,7 +132,7 @@ class StunUInt16ListAttribute; |
class StunMessage { |
public: |
StunMessage(); |
- virtual ~StunMessage(); |
+ virtual ~StunMessage() = default; |
int type() const { return type_; } |
size_t length() const { return length_; } |
@@ -199,7 +199,7 @@ class StunMessage { |
uint16_t type_; |
uint16_t length_; |
std::string transaction_id_; |
- std::vector<StunAttribute*>* attrs_; |
+ std::vector<std::unique_ptr<StunAttribute>> attrs_; |
}; |
// Base class for all STUN/TURN attributes. |