diff options
author | lat9nq <[email protected]> | 2023-07-21 23:09:09 -0400 |
---|---|---|
committer | lat9nq <[email protected]> | 2023-07-21 23:09:09 -0400 |
commit | 17b9c1e1715a16bebcdd92c02ce7f7e503212462 (patch) | |
tree | c469af455cf7905dc7e5ab3cac0fb7f30ca3455c /src/yuzu/configuration/shared_widget.h | |
parent | 2911988b852ec29016780aabb1f46e2d0c231744 (diff) | |
download | yuzu-android-17b9c1e1715a16bebcdd92c02ce7f7e503212462.tar.gz yuzu-android-17b9c1e1715a16bebcdd92c02ce7f7e503212462.zip |
common,qt-config: Remove usage of forward_list
Diffstat (limited to 'src/yuzu/configuration/shared_widget.h')
-rw-r--r-- | src/yuzu/configuration/shared_widget.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/yuzu/configuration/shared_widget.h b/src/yuzu/configuration/shared_widget.h index b3f9efd78..e64693bab 100644 --- a/src/yuzu/configuration/shared_widget.h +++ b/src/yuzu/configuration/shared_widget.h @@ -3,10 +3,10 @@ #pragma once -#include <forward_list> #include <functional> #include <memory> #include <string> +#include <vector> #include <QString> #include <QStringLiteral> #include <QWidget> @@ -62,7 +62,7 @@ public: */ explicit Widget(Settings::BasicSetting* setting, const TranslationMap& translations, const ComboboxTranslationMap& combobox_translations, QWidget* parent, - bool runtime_lock, std::forward_list<std::function<void(bool)>>& apply_funcs_, + bool runtime_lock, std::vector<std::function<void(bool)>>& apply_funcs_, RequestType request = RequestType::Default, bool managed = true, float multiplier = 1.0f, Settings::BasicSetting* other_setting = nullptr, const QString& suffix = QStringLiteral("")); @@ -125,7 +125,7 @@ private: const TranslationMap& translations; const ComboboxTranslationMap& combobox_enumerations; Settings::BasicSetting& setting; - std::forward_list<std::function<void(bool)>>& apply_funcs; + std::vector<std::function<void(bool)>>& apply_funcs; bool created{false}; bool runtime_lock{false}; @@ -137,13 +137,13 @@ public: ~Builder(); Widget* BuildWidget(Settings::BasicSetting* setting, - std::forward_list<std::function<void(bool)>>& apply_funcs, + std::vector<std::function<void(bool)>>& apply_funcs, RequestType request = RequestType::Default, bool managed = true, float multiplier = 1.0f, Settings::BasicSetting* other_setting = nullptr, const QString& suffix = QStringLiteral("")) const; Widget* BuildWidget(Settings::BasicSetting* setting, - std::forward_list<std::function<void(bool)>>& apply_funcs, + std::vector<std::function<void(bool)>>& apply_funcs, Settings::BasicSetting* other_setting, RequestType request = RequestType::Default, const QString& suffix = QStringLiteral("")) const; |