From 54e9f9b6ed4b3a26dc268e6b03a2341b5d58d506 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 17 Apr 2019 00:02:28 -0400 Subject: [PATCH] yuzu/bootmanager: Replace unnnecessary constructor initializer list member of GGLContext The default constructor will always run, even when not specified, so this is redundant. However, the context member can indeed be initialized in the constructor initializer list. --- src/yuzu/bootmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index a197831d8..7eed9fcf3 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -91,8 +91,8 @@ void EmuThread::run() { class GGLContext : public Core::Frontend::GraphicsContext { public: - explicit GGLContext(QOpenGLContext* shared_context) : surface() { - context = std::make_unique(shared_context); + explicit GGLContext(QOpenGLContext* shared_context) + : context{std::make_unique(shared_context)} { surface.setFormat(shared_context->format()); surface.create(); }