From cafc06e70cdbb89d7ccd24a2f77b35e20a7e1007 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 7 Nov 2015 18:33:43 +0100 Subject: [PATCH] Fixed: Clang warnings --HG-- branch : develop --- code/nel/src/gui/interface_group.cpp | 6 ++++-- code/ryzom/client/src/interface_v3/interface_manager.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/code/nel/src/gui/interface_group.cpp b/code/nel/src/gui/interface_group.cpp index b5027a87c..46df4c816 100644 --- a/code/nel/src/gui/interface_group.cpp +++ b/code/nel/src/gui/interface_group.cpp @@ -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]; diff --git a/code/ryzom/client/src/interface_v3/interface_manager.cpp b/code/ryzom/client/src/interface_v3/interface_manager.cpp index a218d4de1..29833d4ff 100644 --- a/code/ryzom/client/src/interface_v3/interface_manager.cpp +++ b/code/ryzom/client/src/interface_v3/interface_manager.cpp @@ -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 {