VERY experimental Nintendo Switch 2 emulator
C++
yuzu/bootmanager: Remove pointer downcast in GRenderWindow's constructor
Lioncash8d120b912113
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cppindex d9d2a8a4c1..a4b89eed8f 100644--- a/src/yuzu/bootmanager.cpp+++ b/src/yuzu/bootmanager.cpp@@ -185,7 +185,7 @@ private:bool do_painting;};-GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread)+GRenderWindow::GRenderWindow(GMainWindow* parent, EmuThread* emu_thread): QWidget(parent), emu_thread(emu_thread) {setWindowTitle(QStringLiteral("yuzu %1 | %2-%3").arg(QString::fromUtf8(Common::g_build_name),@@ -194,8 +194,7 @@ GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread)setAttribute(Qt::WA_AcceptTouchEvents);InputCommon::Init();- connect(this, &GRenderWindow::FirstFrameDisplayed, static_cast<GMainWindow*>(parent),- &GMainWindow::OnLoadComplete);+ connect(this, &GRenderWindow::FirstFrameDisplayed, parent, &GMainWindow::OnLoadComplete);}GRenderWindow::~GRenderWindow() {diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.hindex 7f9f8e8e34..5a1ebd0fe7 100644--- a/src/yuzu/bootmanager.h+++ b/src/yuzu/bootmanager.h@@ -114,7 +114,7 @@ class GRenderWindow : public QWidget, public Core::Frontend::EmuWindow {Q_OBJECTpublic:- GRenderWindow(QWidget* parent, EmuThread* emu_thread);+ GRenderWindow(GMainWindow* parent, EmuThread* emu_thread);~GRenderWindow() override;// EmuWindow implementation