mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +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:
AI
CCallback.cppclient
CBitmapHandler.cppCMT.cppCMusicHandler.cppCPreGame.cppClient.cppGraphics.cppNetPacksClient.cpp
battle
gui
widgets
windows
lib
BattleState.cppBattleState.hCArtHandler.cppCBattleCallback.cppCBonusTypeHandler.cppCConsoleHandler.cppCCreatureHandler.cppCCreatureSet.cppCGameInfoCallback.cppCGameInterface.cppCGameState.cppCHeroHandler.cppCModHandler.cppConnection.cppHeroBonus.cppIGameCallback.cppJsonNode.cppNetPacksBase.hNetPacksLib.cppStartInfo.h
mapObjects
mapping
server
@ -43,7 +43,7 @@ MacroString::MacroString(const std::string &format)
|
||||
|
||||
if (end_pos == std::string::npos)
|
||||
{
|
||||
logBonus->warnStream() << "Format error in: " << format;
|
||||
logBonus->warnStream() << "Format error in: " << format;
|
||||
end_pos = start_pos;
|
||||
break;
|
||||
}
|
||||
@ -150,7 +150,7 @@ std::string CBonusTypeHandler::bonusToString(const Bonus *bonus, const IBonusBea
|
||||
}
|
||||
else
|
||||
{
|
||||
logBonus->warnStream() << "Unknown macro in bonus config: " << name;
|
||||
logBonus->warnStream() << "Unknown macro in bonus config: " << name;
|
||||
return "[error]";
|
||||
}
|
||||
};
|
||||
@ -286,14 +286,14 @@ void CBonusTypeHandler::load(const JsonNode& config)
|
||||
//
|
||||
// bonusTypes.push_back(bt);
|
||||
|
||||
logBonus->warnStream() << "Adding new bonuses not implemented (" << node.first << ")";
|
||||
logBonus->warnStream() << "Adding new bonuses not implemented (" << node.first << ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
CBonusType& bt = bonusTypes[it->second];
|
||||
|
||||
loadItem(node.second, bt);
|
||||
logBonus->traceStream() << "Loaded bonus type " << node.first;
|
||||
logBonus->traceStream() << "Loaded bonus type " << node.first;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user