diff options
author | bunnei <bunneidev@gmail.com> | 2020-08-15 07:31:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 07:31:23 +0200 |
commit | 2aabd1eb05b00ce4231a385bf8d7deb130d8f088 (patch) | |
tree | 1ea6f6e392dbef18c1231fe903ab8106fc5cac4f /src/core/frontend | |
parent | Merge pull request #4416 from lioncash/span (diff) | |
parent | emu_window: Mark Scoped constructor and Acquire() as nodiscard (diff) | |
download | yuzu-2aabd1eb05b00ce4231a385bf8d7deb130d8f088.tar yuzu-2aabd1eb05b00ce4231a385bf8d7deb130d8f088.tar.gz yuzu-2aabd1eb05b00ce4231a385bf8d7deb130d8f088.tar.bz2 yuzu-2aabd1eb05b00ce4231a385bf8d7deb130d8f088.tar.lz yuzu-2aabd1eb05b00ce4231a385bf8d7deb130d8f088.tar.xz yuzu-2aabd1eb05b00ce4231a385bf8d7deb130d8f088.tar.zst yuzu-2aabd1eb05b00ce4231a385bf8d7deb130d8f088.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/frontend/emu_window.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index 13aa14934..3e8780243 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h @@ -39,7 +39,7 @@ public: class Scoped { public: - explicit Scoped(GraphicsContext& context_) : context(context_) { + [[nodiscard]] explicit Scoped(GraphicsContext& context_) : context(context_) { context.MakeCurrent(); } ~Scoped() { @@ -52,7 +52,7 @@ public: /// Calls MakeCurrent on the context and calls DoneCurrent when the scope for the returned value /// ends - Scoped Acquire() { + [[nodiscard]] Scoped Acquire() { return Scoped{*this}; } }; |