diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-10-30 16:13:29 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-11-02 02:45:15 -0500 |
| commit | 2ee59021c29bf6f3fb3b665923bb2b0589ceacf8 (patch) | |
| tree | e35c6800340cec5f104e094a377c69ccc3dd101f /src/video_core/command_classes/codecs/vp9.h | |
| parent | b712b3684a1571508cf480e1b38b0e8ab867643d (diff) | |
nvdec: Make use of [[nodiscard]] where applicable
Prevents bugs from occurring where the results of a function are
accidentally discarded
Diffstat (limited to 'src/video_core/command_classes/codecs/vp9.h')
| -rw-r--r-- | src/video_core/command_classes/codecs/vp9.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.h b/src/video_core/command_classes/codecs/vp9.h index 05c9682fa5..e2504512c7 100644 --- a/src/video_core/command_classes/codecs/vp9.h +++ b/src/video_core/command_classes/codecs/vp9.h @@ -119,7 +119,7 @@ public: /// Composes the VP9 frame from the GPU state information. Based on the official VP9 spec /// documentation - std::vector<u8>& ComposeFrameHeader(NvdecCommon::NvdecRegisters& state); + [[nodiscard]] const std::vector<u8>& ComposeFrameHeader(NvdecCommon::NvdecRegisters& state); /// Returns true if the most recent frame was a hidden frame. [[nodiscard]] bool WasFrameHidden() const { |
