summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/logic/Json.h2
-rw-r--r--libraries/classparser/src/classparser.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/Json.h b/api/logic/Json.h
index 321007cd..a84d204a 100644
--- a/api/logic/Json.h
+++ b/api/logic/Json.h
@@ -123,7 +123,7 @@ T ensureIsType(const QJsonValue &value, const T default_ = T(), const QString &w
{
return requireIsType<T>(value, what);
}
- catch (JsonException)
+ catch (const JsonException &)
{
return default_;
}
diff --git a/libraries/classparser/src/classparser.cpp b/libraries/classparser/src/classparser.cpp
index bf5cc039..6587a2b9 100644
--- a/libraries/classparser/src/classparser.cpp
+++ b/libraries/classparser/src/classparser.cpp
@@ -70,7 +70,7 @@ QString GetMinecraftJarVersion(QString jarName)
}
}
}
- catch (java::classfile_exception) { }
+ catch (const java::classfile_exception &) { }
// clean up
delete[] classfile;