mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Fix indentation of logging code and around it
That wouldn't be as big issue if problem affected few files, but it everywhere in codebase. Fixed it everywhere since in most files that is the only code with wrong indentation.
This commit is contained in:
@ -348,7 +348,7 @@ Bonus * JsonUtils::parseBonus (const JsonVector &ability_vec) //TODO: merge with
|
||||
auto it = bonusNameMap.find(type);
|
||||
if (it == bonusNameMap.end())
|
||||
{
|
||||
logGlobal->errorStream() << "Error: invalid ability type " << type;
|
||||
logGlobal->errorStream() << "Error: invalid ability type " << type;
|
||||
return b;
|
||||
}
|
||||
b->type = it->second;
|
||||
@ -366,7 +366,7 @@ const T & parseByMap(const std::map<std::string, T> & map, const JsonNode * val,
|
||||
auto it = map.find(type);
|
||||
if (it == map.end())
|
||||
{
|
||||
logGlobal->errorStream() << "Error: invalid " << err << type;
|
||||
logGlobal->errorStream() << "Error: invalid " << err << type;
|
||||
return defaultValue;
|
||||
}
|
||||
else
|
||||
@ -395,7 +395,7 @@ void JsonUtils::resolveIdentifier (si32 &var, const JsonNode &node, std::string
|
||||
});
|
||||
break;
|
||||
default:
|
||||
logGlobal->errorStream() << "Error! Wrong identifier used for value of " << name;
|
||||
logGlobal->errorStream() << "Error! Wrong identifier used for value of " << name;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -414,7 +414,7 @@ void JsonUtils::resolveIdentifier (const JsonNode &node, si32 &var)
|
||||
});
|
||||
break;
|
||||
default:
|
||||
logGlobal->errorStream() << "Error! Wrong identifier used for identifier!";
|
||||
logGlobal->errorStream() << "Error! Wrong identifier used for identifier!";
|
||||
}
|
||||
}
|
||||
|
||||
@ -428,7 +428,7 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability)
|
||||
auto it = bonusNameMap.find(type);
|
||||
if (it == bonusNameMap.end())
|
||||
{
|
||||
logGlobal->errorStream() << "Error: invalid ability type " << type;
|
||||
logGlobal->errorStream() << "Error: invalid ability type " << type;
|
||||
return b;
|
||||
}
|
||||
b->type = it->second;
|
||||
@ -472,7 +472,7 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
logGlobal->errorStream() << "Error! Wrong bonus duration format.";
|
||||
logGlobal->errorStream() << "Error! Wrong bonus duration format.";
|
||||
}
|
||||
}
|
||||
|
||||
@ -519,7 +519,7 @@ Bonus * JsonUtils::parseBonus (const JsonNode &ability)
|
||||
auto it = bonusNameMap.find (anotherBonusType);
|
||||
if (it == bonusNameMap.end())
|
||||
{
|
||||
logGlobal->errorStream() << "Error: invalid ability type " << anotherBonusType;
|
||||
logGlobal->errorStream() << "Error: invalid ability type " << anotherBonusType;
|
||||
continue;
|
||||
}
|
||||
l2->type = it->second;
|
||||
@ -684,7 +684,7 @@ const JsonNode & getSchemaByName(std::string name)
|
||||
return loadedSchemas[name];
|
||||
}
|
||||
|
||||
logGlobal->errorStream() << "Error: missing schema with name " << name << "!";
|
||||
logGlobal->errorStream() << "Error: missing schema with name " << name << "!";
|
||||
assert(0);
|
||||
return nullNode;
|
||||
}
|
||||
@ -702,7 +702,7 @@ const JsonNode & JsonUtils::getSchema(std::string URI)
|
||||
|
||||
if (protocolName != "vcmi")
|
||||
{
|
||||
logGlobal->errorStream() << "Error: unsupported URI protocol for schema: " << segments[0];
|
||||
logGlobal->errorStream() << "Error: unsupported URI protocol for schema: " << segments[0];
|
||||
return nullNode;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user