summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-07-27 02:11:37 +0000
committersvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-07-27 02:11:37 +0000
commit051f6092a531bf0e051f76ac1128f7bbda43fa62 (patch)
tree7a9b19ca882f829a61e315790a89504feb0139be /src
parentc2322a27d84c76b3ccbc399d3e6c61678600f011 (diff)
downloadvdr-plugin-menuorg-051f6092a531bf0e051f76ac1128f7bbda43fa62.tar.gz
vdr-plugin-menuorg-051f6092a531bf0e051f76ac1128f7bbda43fa62.tar.bz2
strike! it compiles!
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5651 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src')
-rw-r--r--src/xmlmenu.cpp6
1 files changed, 2 insertions, 4 deletions
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<const ContentNode*>(a_node);
const TextNode* nodeText = dynamic_cast<const TextNode*>(a_node);
const CommentNode* nodeComment = dynamic_cast<const CommentNode*>(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
}
}
}