From ac9bb18ed7b49e2e89ab2fda53669f596f5dfad0 Mon Sep 17 00:00:00 2001 From: janwas Date: Sun, 8 Aug 2004 18:21:58 +0000 Subject: [PATCH] added debug_warns where there were TODO gee: report error comments This was SVN commit r940. --- source/gui/IGUIObject.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/gui/IGUIObject.cpp b/source/gui/IGUIObject.cpp index cb119cd70c..224f3628ea 100755 --- a/source/gui/IGUIObject.cpp +++ b/source/gui/IGUIObject.cpp @@ -171,6 +171,7 @@ void IGUIObject::AddSetting(const EGUISettingType &Type, const CStr& Name) CASE_TYPE(CGUIString) default: + debug_warn("IGUIObject::AddSetting failed"); // TODO Gee: Report in log, type is not recognized. break; } @@ -339,7 +340,9 @@ void IGUIObject::LoadStyle(CGUI &GUIinstance, const CStr& StyleName) LoadStyle(GUIinstance.m_Styles[StyleName]); } else - ;// TODO Gee: report error + { + debug_warn("IGUIObject::LoadStyle failed"); + } } void IGUIObject::LoadStyle(const SGUIStyle &Style) @@ -358,6 +361,7 @@ void IGUIObject::LoadStyle(const SGUIStyle &Style) catch (PS_RESULT e) { UNUSED(e); +// debug_warn("IGUIObject::LoadStyle failed"); // (this happens) // TODO Gee: was ist das? } } @@ -378,8 +382,11 @@ float IGUIObject::GetBufferedZ() const if (GetParent()) return GetParent()->GetBufferedZ() + Z; else + { + debug_warn("IGUIObject::LoadStyle failed"); // TODO Gee: Error, no object should be relative without a parent! return Z; + } } }