From 051f6092a531bf0e051f76ac1128f7bbda43fa62 Mon Sep 17 00:00:00 2001 From: svntcreutz Date: Fri, 27 Jul 2007 02:11:37 +0000 Subject: strike! it compiles! git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5651 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- src/xmlmenu.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/xmlmenu.cpp') diff --git a/src/xmlmenu.cpp b/src/xmlmenu.cpp index 64e743b..94369bd 100644 --- a/src/xmlmenu.cpp +++ b/src/xmlmenu.cpp @@ -45,7 +45,7 @@ void XmlMenu::parseNode(const Node* a_node, unsigned int Parent, MenuNode* paren const ContentNode* nodeContent = dynamic_cast(a_node); const TextNode* nodeText = dynamic_cast(a_node); const CommentNode* nodeComment = dynamic_cast(a_node); - MenuNode newparentNode; + MenuNode* newparentNode; /**** MenuNode* subMenu1 =_rootMenuNode.AddChild(new SubMenuItem("Custom menu 1")); @@ -81,7 +81,6 @@ void XmlMenu::parseNode(const Node* a_node, unsigned int Parent, MenuNode* paren { const Attribute* attribute = *iter; //cout << Parent << "-" << MainMenuIndex << "-" << myMenuNr << "-SystemItem=" << attribute->get_value() << endl; - //TODO: search a valid cast/convert code if (parentNode == NULL) newparentNode =_rootMenuNode.AddChild(new VdrMenuItem(tr(attribute->get_value().data()), geteOSState(attribute->get_value()))); else @@ -98,7 +97,6 @@ void XmlMenu::parseNode(const Node* a_node, unsigned int Parent, MenuNode* paren { const Attribute* attribute = *iter; //cout << Parent << "-" << MainMenuIndex << "-" << myMenuNr << "-MenuItem=" << attribute->get_value() << endl; - //TODO: search a valid cast/convert code if (parentNode == NULL) newparentNode =_rootMenuNode.AddChild(new SubMenuItem(attribute->get_value().data())); else @@ -136,7 +134,7 @@ void XmlMenu::parseNode(const Node* a_node, unsigned int Parent, MenuNode* paren Node::NodeList list = a_node->get_children(); for(Node::NodeList::iterator iter = list.begin(); iter != list.end(); ++iter) { - parseNode(*iter, Parent+1, *newparentNode); //recursive + parseNode(*iter, Parent+1, newparentNode); //recursive } } } -- cgit v1.2.3