Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

yuzu/bootmanager: Replace unnnecessary constructor initializer list member of GGLContext

Lioncash69fdfc5296b7
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index a197831d8b..7eed9fcf3e 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<QOpenGLContext>(shared_context);
+ explicit GGLContext(QOpenGLContext* shared_context)
+ : context{std::make_unique<QOpenGLContext>(shared_context)} {
surface.setFormat(shared_context->format());
surface.create();
}