aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-07-29 11:02:10 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-08-02 18:35:07 +0200
commit76df836378aa5dd90b0d039358d9927628d48878 (patch)
tree8d265d36feb37faad24f98c0389c4f8c65af850e /launcher/minecraft
parenta545f67a211173ae0649e7dda59e1e0fecb2e160 (diff)
downloadPrismLauncher-76df836378aa5dd90b0d039358d9927628d48878.tar.gz
PrismLauncher-76df836378aa5dd90b0d039358d9927628d48878.tar.bz2
PrismLauncher-76df836378aa5dd90b0d039358d9927628d48878.zip
fix: simplify switch statement
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft')
-rw-r--r--launcher/minecraft/PackProfile.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/launcher/minecraft/PackProfile.cpp b/launcher/minecraft/PackProfile.cpp
index e8fd2157..7cdd47ae 100644
--- a/launcher/minecraft/PackProfile.cpp
+++ b/launcher/minecraft/PackProfile.cpp
@@ -591,10 +591,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
}
case Qt::DecorationRole:
{
- switch(column)
- {
- case NameColumn:
- {
+ if (column == NameColumn) {
auto severity = patch->getProblemSeverity();
switch (severity)
{
@@ -606,11 +603,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
return QVariant();
}
}
- default:
- {
- return QVariant();
- }
- }
+ return QVariant();
}
}
return QVariant();