Fix build in C++20 mode.

Structs with user-declared constructors are not aggregates and cannot
be initialized with designated initializers.  Remove declarations that
don't actually affect anything.

Bug: chromium:1284275
Change-Id: Ib45ea334d7be28bfa7bbce132985612f0e6ecd10
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/262820
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36916}
This commit is contained in:
Peter Kasting 2022-05-17 09:57:15 -07:00 committed by WebRTC LUCI CQ
parent 79dc0a223e
commit f92a0846c3

View File

@ -48,12 +48,6 @@ class PrioritizedPacketQueue : public PacingController::PacketQueue {
class QueuedPacket {
public:
QueuedPacket(QueuedPacket&&) = default;
QueuedPacket& operator=(QueuedPacket&&) = default;
QueuedPacket(const QueuedPacket&) = delete;
QueuedPacket& operator=(const QueuedPacket&) = delete;
DataSize PacketSize() const;
std::unique_ptr<RtpPacketToSend> packet;