1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

went through the rest of cppcheck warnings, mostly harmless

This commit is contained in:
Ivan Savenko
2013-11-07 12:48:41 +00:00
parent 71d6b0fea9
commit ee6cdbeffe
39 changed files with 88 additions and 126 deletions

View File

@ -889,7 +889,6 @@ struct IFPerformer : StandardReceiverVisitor<TUnusedType>
void operator()(TNormalBodyOption const& trig) const override
{
std::string message; //to be shown
switch(trig.optionCode)
{
case 'M': //Show the message (Text) or contents of z$ variable on the screen immediately.
@ -1380,9 +1379,9 @@ struct ERMExpDispatch : boost::static_visitor<>
}
else if(trig.name == "HE")
{
const CGHeroInstance * hero = nullptr;
if(trig.identifier.is_initialized())
{
const CGHeroInstance * hero = nullptr;
ERM::Tidentifier tid = trig.identifier.get();
switch(tid.size())
{