mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
chore: Re-simplify IndexVersionType and MessageLevel with c++20
This sets our compiler requirements to gcc 11 and clang 13. If we forgo the use of `using enum` we can drop to gcc 10 and clang 10 but that means using `MessageLevel::Enum::Unknown` for direct enum access Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
30f24dae11
commit
d1b6d7c402
15 changed files with 76 additions and 46 deletions
|
|
@ -45,11 +45,11 @@ QList<ModLoaderType> modLoaderTypesToList(ModLoaderTypes flags)
|
|||
return flagList;
|
||||
}
|
||||
|
||||
QString indexedVersionTypeToString(IndexedVersionType type) {
|
||||
return s_indexed_version_type_names.key(type, "unknown");
|
||||
QString IndexedVersionType::toString() const {
|
||||
return s_indexed_version_type_names.key(m_type, "unknown");
|
||||
}
|
||||
|
||||
IndexedVersionType indexedVersionTypeFromString(const QString& type) {
|
||||
IndexedVersionType IndexedVersionType::fromString(const QString& type) {
|
||||
return s_indexed_version_type_names.value(type, IndexedVersionType::Unknown);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue