Remove user-declared constructors from sturct used as aggregate.
Structs with user-declared constructors are not aggregates in C++20. This fixes a C++20 compile error. Bug: chromium:1284275 Change-Id: Iaeab959fc72ac6bf395af57d10808baee2db533f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/272522 Auto-Submit: Peter Kasting <pkasting@chromium.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/main@{#37854}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
4bdaf4f42d
commit
6493afefed
@ -205,11 +205,6 @@ class VideoReceiveStream2
|
||||
void CreateAndRegisterExternalDecoder(const Decoder& decoder);
|
||||
|
||||
struct DecodeFrameResult {
|
||||
DecodeFrameResult(const DecodeFrameResult&) = delete;
|
||||
DecodeFrameResult& operator=(const DecodeFrameResult&) = delete;
|
||||
DecodeFrameResult(DecodeFrameResult&&) = default;
|
||||
DecodeFrameResult& operator=(DecodeFrameResult&&) = default;
|
||||
|
||||
// True if the decoder returned code WEBRTC_VIDEO_CODEC_OK_REQUEST_KEYFRAME,
|
||||
// or if the decoder failed and a keyframe is required. When true, a
|
||||
// keyframe request should be sent even if a keyframe request was sent
|
||||
|
Reference in New Issue
Block a user