diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-17 00:02:28 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-17 00:04:10 -0400 |
commit | 54e9f9b6ed4b3a26dc268e6b03a2341b5d58d506 (patch) | |
tree | f57cf1666760aadb9c75ce178f61608fb65ef011 /src | |
parent | 52e43734c4832136aabf2efb807e43f0c331aa7c (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 4 |
1 files 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<QOpenGLContext>(shared_context); + explicit GGLContext(QOpenGLContext* shared_context) + : context{std::make_unique<QOpenGLContext>(shared_context)} { surface.setFormat(shared_context->format()); surface.create(); } |