Index: webrtc/api/jsepicecandidate.h |
diff --git a/webrtc/api/jsepicecandidate.h b/webrtc/api/jsepicecandidate.h |
index 65a7446af6c7b05d31c44d4aab6f41d94128b470..529b2a7756de8ea0ebf33e714fb6e63eb04176a6 100644 |
--- a/webrtc/api/jsepicecandidate.h |
+++ b/webrtc/api/jsepicecandidate.h |
@@ -53,6 +53,11 @@ class JsepIceCandidate : public IceCandidateInterface { |
// This implementation stores JsepIceCandidates. |
class JsepCandidateCollection : public IceCandidateCollection { |
public: |
+ JsepCandidateCollection() {} |
+ // Move constructor is defined so that a vector of JsepCandidateCollections |
+ // can be resized. |
+ JsepCandidateCollection(JsepCandidateCollection&& o) |
+ : candidates_(std::move(o.candidates_)) {} |
~JsepCandidateCollection(); |
virtual size_t count() const { |
return candidates_.size(); |
@@ -68,6 +73,8 @@ class JsepCandidateCollection : public IceCandidateCollection { |
private: |
std::vector<JsepIceCandidate*> candidates_; |
+ |
+ RTC_DISALLOW_COPY_AND_ASSIGN(JsepCandidateCollection); |
}; |
} // namespace webrtc |