Remove RTC_DISALLOW_COPY_AND_ASSIGN more.
Bug: webrtc:13555, webrtc:13082
Change-Id: I9c07708108da0a26f5e228384fd56cef4d1540b3
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/247300
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Commit-Queue: (Daniel.L) Byoungchan Lee <daniel.l@hpcnt.com>
Cr-Commit-Position: refs/heads/main@{#35749}
diff --git a/api/jsep_ice_candidate.h b/api/jsep_ice_candidate.h
index 40e2783..8f47a10 100644
--- a/api/jsep_ice_candidate.h
+++ b/api/jsep_ice_candidate.h
@@ -22,7 +22,6 @@
#include "api/candidate.h"
#include "api/jsep.h"
-#include "rtc_base/constructor_magic.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
@@ -64,6 +63,10 @@
// Move constructor is defined so that a vector of JsepCandidateCollections
// can be resized.
JsepCandidateCollection(JsepCandidateCollection&& o);
+
+ JsepCandidateCollection(const JsepCandidateCollection&) = delete;
+ JsepCandidateCollection& operator=(const JsepCandidateCollection&) = delete;
+
// Returns a copy of the candidate collection.
JsepCandidateCollection Clone() const;
size_t count() const override;
@@ -80,8 +83,6 @@
private:
std::vector<std::unique_ptr<JsepIceCandidate>> candidates_;
-
- RTC_DISALLOW_COPY_AND_ASSIGN(JsepCandidateCollection);
};
} // namespace webrtc