refactor: replace std::list with std::vector

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit 19b9557c19)
This commit is contained in:
Octol1ttle 2026-01-21 12:19:55 +05:00 committed by github-actions[bot]
parent 43eeb14a7f
commit ea42d6f676
14 changed files with 24 additions and 24 deletions

View file

@ -27,7 +27,7 @@ ResourceAPI::SearchArgs ModModel::createSearchArguments()
Q_ASSERT(profile);
Q_ASSERT(m_filter);
std::optional<std::list<Version>> versions{};
std::optional<std::vector<Version>> versions{};
std::optional<QStringList> categories{};
auto loaders = profile->getSupportedModLoaders();
@ -55,7 +55,7 @@ ResourceAPI::VersionSearchArgs ModModel::createVersionsArguments(const QModelInd
Q_ASSERT(profile);
Q_ASSERT(m_filter);
std::optional<std::list<Version>> versions{};
std::optional<std::vector<Version>> versions{};
auto loaders = profile->getSupportedModLoaders();
if (!m_filter->versions.empty())
versions = m_filter->versions;