diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2026-04-11 14:55:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-11 14:55:41 -0500 |
| commit | 33f62b0f9f36a3dfccc3ecfc13358899d0cc8036 (patch) | |
| tree | 270bf5e13f299486c05d1f681e96dc5b774cc1e7 /Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.cpp | |
| parent | 27e09633dee06f25d76b2e84048e80c57d6e6a87 (diff) | |
| parent | f6a67aa6e722350db3fc778e4f881cb60090faa1 (diff) | |
Merge pull request #14500 from Sintendo/span2
Replace `const std::vector&` arguments with `std::span`
Diffstat (limited to 'Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.cpp b/Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.cpp index bdc9518587..60633b010f 100644 --- a/Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.cpp +++ b/Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.cpp @@ -45,7 +45,7 @@ void ConfigChoiceU32::OnConfigChanged() setCurrentIndex(ReadValue(m_setting)); } -ConfigStringChoice::ConfigStringChoice(const std::vector<std::string>& options, +ConfigStringChoice::ConfigStringChoice(std::span<const std::string> options, const Config::Info<std::string>& setting, Config::Layer* layer) : ConfigControl(setting.GetLocation(), layer), m_setting(setting), m_text_is_data(true) @@ -57,7 +57,7 @@ ConfigStringChoice::ConfigStringChoice(const std::vector<std::string>& options, connect(this, &QComboBox::currentIndexChanged, this, &ConfigStringChoice::Update); } -ConfigStringChoice::ConfigStringChoice(const std::vector<std::pair<QString, QString>>& options, +ConfigStringChoice::ConfigStringChoice(std::span<const std::pair<QString, QString>> options, const Config::Info<std::string>& setting, Config::Layer* layer) : ConfigControl(setting.GetLocation(), layer), m_setting(setting), m_text_is_data(false) |
