mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-04 17:24:47 +00:00
Fixed: Clang warnings
This commit is contained in:
parent
2700f2eda9
commit
eae10aaba5
2 changed files with 8 additions and 4 deletions
|
@ -2140,7 +2140,8 @@ namespace NLGUI
|
|||
std::string typeName = "???";
|
||||
if (_ChildrenGroups[k])
|
||||
{
|
||||
const type_info &ti = typeid(*_ChildrenGroups[k]);
|
||||
NLGUI::CInterfaceGroup *group = _ChildrenGroups[k];
|
||||
const type_info &ti = typeid(*group);
|
||||
typeName = ti.name();
|
||||
}
|
||||
nlinfo("Group %d, name = %s, type=%s", k, _ChildrenGroups[k] ? _ChildrenGroups[k]->getId().c_str() : "???", typeName.c_str());
|
||||
|
@ -2156,7 +2157,8 @@ namespace NLGUI
|
|||
std::string typeName = "???";
|
||||
if (_ChildrenGroups[k])
|
||||
{
|
||||
const type_info &ti = typeid(*_EltOrder[k]);
|
||||
NLGUI::CViewBase *view = _EltOrder[k];
|
||||
const type_info &ti = typeid(*view);
|
||||
typeName = ti.name();
|
||||
}
|
||||
CInterfaceElement *el = _EltOrder[k];
|
||||
|
|
|
@ -2488,7 +2488,8 @@ void CInterfaceManager::dumpUI(bool /* indent */)
|
|||
if (ig->getViews()[k])
|
||||
{
|
||||
info += id;
|
||||
info += toString(", type = %s, address=0x%p", typeid(*ig->getViews()[k]).name(), ig->getViews()[k]);
|
||||
NLGUI::CViewBase *view = ig->getViews()[k];
|
||||
info += toString(", type = %s, address=0x%p", typeid(*view).name(), view);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2504,7 +2505,8 @@ void CInterfaceManager::dumpUI(bool /* indent */)
|
|||
if (ig->getControls()[k])
|
||||
{
|
||||
info += id;
|
||||
info += toString(", type = %s, address=0x%p", typeid(*ig->getControls()[k]).name(), ig->getControls()[k]);
|
||||
NLGUI::CCtrlBase *control = ig->getControls()[k];
|
||||
info += toString(", type = %s, address=0x%p", typeid(*control).name(), control);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue