mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
refactor: replace std::list with std::vector
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
ef747055af
commit
19b9557c19
14 changed files with 24 additions and 24 deletions
|
|
@ -81,7 +81,7 @@ class ResourceAPI {
|
|||
std::optional<QString> search;
|
||||
std::optional<SortingMethod> sorting;
|
||||
std::optional<ModPlatform::ModLoaderTypes> loaders;
|
||||
std::optional<std::list<Version>> versions;
|
||||
std::optional<std::vector<Version>> versions;
|
||||
std::optional<ModPlatform::Side> side;
|
||||
std::optional<QStringList> categoryIds;
|
||||
bool openSource;
|
||||
|
|
@ -90,7 +90,7 @@ class ResourceAPI {
|
|||
struct VersionSearchArgs {
|
||||
ModPlatform::IndexedPack::Ptr pack;
|
||||
|
||||
std::optional<std::list<Version>> mcVersions;
|
||||
std::optional<std::vector<Version>> mcVersions;
|
||||
std::optional<ModPlatform::ModLoaderTypes> loaders;
|
||||
ModPlatform::ResourceType resourceType;
|
||||
};
|
||||
|
|
@ -124,7 +124,7 @@ class ResourceAPI {
|
|||
|
||||
QString mapMCVersionToModrinth(Version v) const;
|
||||
|
||||
QString getGameVersionsString(std::list<Version> mcVersions) const;
|
||||
QString getGameVersionsString(std::vector<Version> mcVersions) const;
|
||||
|
||||
public:
|
||||
virtual auto getSearchURL(SearchArgs const& args) const -> std::optional<QString> = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue