1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00
- fixed some warnings from cppcheck
This commit is contained in:
Ivan Savenko
2012-09-26 13:13:39 +00:00
parent 7759ed017e
commit 15a7f43e11
31 changed files with 134 additions and 198 deletions

View File

@ -788,7 +788,7 @@ void CInfoBar::CVisibleInfo::loadGameStatus()
}
}
void CInfoBar::CVisibleInfo::loadComponent(const Component compToDisplay, std::string message)
void CInfoBar::CVisibleInfo::loadComponent(const Component & compToDisplay, std::string message)
{
assert(children.empty()); // visible info should be re-created to change type
@ -889,7 +889,7 @@ void CInfoBar::showDate()
redraw();
}
void CInfoBar::showComponent(const Component comp, std::string message)
void CInfoBar::showComponent(const Component & comp, std::string message)
{
reset(COMPONENT);
visibleInfo->loadComponent(comp, message);