diff options
| author | bunnei <bunneidev@gmail.com> | 2020-11-03 16:34:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 16:34:07 -0800 |
| commit | 9a815374476a140a0e063aeb65a9fe5116039c6e (patch) | |
| tree | bf7e27c7e5ba36ace45e36b93cc533835d7cfb91 /src/video_core/command_classes/codecs/codec.h | |
| parent | 6e1fb8d4c12af6a1c24df36e6fea218e0dd2a7cf (diff) | |
| parent | 2ee59021c29bf6f3fb3b665923bb2b0589ceacf8 (diff) | |
Merge pull request #4874 from lioncash/nodiscard2
nvdec: Make use of [[nodiscard]] where applicable
Diffstat (limited to 'src/video_core/command_classes/codecs/codec.h')
| -rw-r--r-- | src/video_core/command_classes/codecs/codec.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/command_classes/codecs/codec.h b/src/video_core/command_classes/codecs/codec.h index cb67094f68..5bbe6a332f 100644 --- a/src/video_core/command_classes/codecs/codec.h +++ b/src/video_core/command_classes/codecs/codec.h @@ -42,11 +42,11 @@ public: void Decode(); /// Returns most recently decoded frame - AVFrame* GetCurrentFrame(); - const AVFrame* GetCurrentFrame() const; + [[nodiscard]] AVFrame* GetCurrentFrame(); + [[nodiscard]] const AVFrame* GetCurrentFrame() const; /// Returns the value of current_codec - NvdecCommon::VideoCodec GetCurrentCodec() const; + [[nodiscard]] NvdecCommon::VideoCodec GetCurrentCodec() const; private: bool initialized{}; |
