summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-03 02:17:42 +0200
committerLioncash <mathew1800@gmail.com>2020-08-14 10:43:44 +0200
commita93f6e51d355ee95009a07c8a574fc9eaed212bf (patch)
tree51ecd620a23b0b379ba40318c0ea43f4d8959c19 /src/core
parentkernel/scheduler: Mark SchedulerLock constructor as nodiscard (diff)
downloadyuzu-a93f6e51d355ee95009a07c8a574fc9eaed212bf.tar
yuzu-a93f6e51d355ee95009a07c8a574fc9eaed212bf.tar.gz
yuzu-a93f6e51d355ee95009a07c8a574fc9eaed212bf.tar.bz2
yuzu-a93f6e51d355ee95009a07c8a574fc9eaed212bf.tar.lz
yuzu-a93f6e51d355ee95009a07c8a574fc9eaed212bf.tar.xz
yuzu-a93f6e51d355ee95009a07c8a574fc9eaed212bf.tar.zst
yuzu-a93f6e51d355ee95009a07c8a574fc9eaed212bf.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/frontend/emu_window.h4
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};
}
};