diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-07-29 11:02:10 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-02 18:35:07 +0200 |
commit | 76df836378aa5dd90b0d039358d9927628d48878 (patch) | |
tree | 8d265d36feb37faad24f98c0389c4f8c65af850e /launcher/minecraft/PackProfile.cpp | |
parent | a545f67a211173ae0649e7dda59e1e0fecb2e160 (diff) | |
download | PrismLauncher-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/PackProfile.cpp')
-rw-r--r-- | launcher/minecraft/PackProfile.cpp | 11 |
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(); |