From 02c48a80f6f8f88716cdacbfb62643d04632949a Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Tue, 20 Jun 2023 19:34:50 -0400 Subject: [PATCH] config_shared: Remove storing the group from tab --- src/yuzu/configuration/configuration_shared.cpp | 3 +-- src/yuzu/configuration/configuration_shared.h | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/yuzu/configuration/configuration_shared.cpp b/src/yuzu/configuration/configuration_shared.cpp index d3cfacf482..8c12d063e1 100644 --- a/src/yuzu/configuration/configuration_shared.cpp +++ b/src/yuzu/configuration/configuration_shared.cpp @@ -7,8 +7,7 @@ namespace ConfigurationShared { -Tab::Tab(std::shared_ptr> group_, QWidget* parent) - : QWidget(parent), group{group_} { +Tab::Tab(std::shared_ptr> group, QWidget* parent) : QWidget(parent) { if (group != nullptr) { group->push_front(this); } diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.h index 5313bfb4f2..2a084b584e 100644 --- a/src/yuzu/configuration/configuration_shared.h +++ b/src/yuzu/configuration/configuration_shared.h @@ -17,14 +17,11 @@ class Tab : public QWidget { Q_OBJECT public: - explicit Tab(std::shared_ptr> group_, QWidget* parent = nullptr); + explicit Tab(std::shared_ptr> group, QWidget* parent = nullptr); ~Tab(); virtual void ApplyConfiguration() = 0; virtual void SetConfiguration() = 0; - -private: - std::shared_ptr> group; }; } // namespace ConfigurationShared