added brace wrapping after if and for

This commit is contained in:
fourtf
2018-10-21 13:43:02 +02:00
parent c6e1ec3c71
commit e259b9e39f
138 changed files with 4738 additions and 2237 deletions
+10 -4
View File
@@ -19,19 +19,25 @@ namespace Settings {
struct Deserialize<QString> {
static QString get(const rapidjson::Value &value, bool *error = nullptr)
{
if (!value.IsString()) {
if (!value.IsString())
{
PAJLADA_REPORT_ERROR(error)
PAJLADA_THROW_EXCEPTION(
"Deserialized rapidjson::Value is not a string");
return QString{};
}
try {
try
{
return QString::fromUtf8(value.GetString(),
value.GetStringLength());
} catch (const std::exception &) {
}
catch (const std::exception &)
{
// int x = 5;
} catch (...) {
}
catch (...)
{
// int y = 5;
}