aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/minecraft')
-rw-r--r--launcher/minecraft/PackProfile.cpp11
-rw-r--r--launcher/minecraft/World.h2
2 files changed, 3 insertions, 10 deletions
diff --git a/launcher/minecraft/PackProfile.cpp b/launcher/minecraft/PackProfile.cpp
index 00809bb0..1f210d69 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();
diff --git a/launcher/minecraft/World.h b/launcher/minecraft/World.h
index 10328cce..dc3733d5 100644
--- a/launcher/minecraft/World.h
+++ b/launcher/minecraft/World.h
@@ -28,7 +28,7 @@ struct GameType {
enum
{
Unknown = -1,
- Survival = 0,
+ Survival,
Creative,
Adventure,
Spectator