Skip to content

Commit 3d310ae

Browse files
gulfemsavrunCQ Bot
authored andcommitted
[codec][vaapi] Add const to copy assignment
llvm/llvm-project#89652 made std::pair trivially copyable if its members are, and it caused the following issue: "error: the parameter for this explicitly-defaulted copy assignment operator is const, but a member or base requires it to be non-const". This patch adds const to copy assignment operator to fix the issue. Bug: 354627057 Change-Id: I10ee04c40da8820e33b80f51492e136a27e97972 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1086537 Fuchsia-Auto-Submit: Gulfem Savrun Yeniceri <[email protected]> Commit-Queue: Auto-Submit <[email protected]> Reviewed-by: John Bauman <[email protected]>
1 parent bef64e6 commit 3d310ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/media/codec/codecs/vaapi/codec_adapter_vaapi_encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class VaApiEncoderOutput {
4747
~VaApiEncoderOutput();
4848

4949
VaApiEncoderOutput& operator=(VaApiEncoderOutput&& other) noexcept;
50-
VaApiEncoderOutput& operator=(VaApiEncoderOutput& other) noexcept = delete;
50+
VaApiEncoderOutput& operator=(const VaApiEncoderOutput& other) noexcept = delete;
5151

5252
private:
5353
uint8_t* base_address_ = nullptr;

0 commit comments

Comments
 (0)