From c2322a27d84c76b3ccbc399d3e6c61678600f011 Mon Sep 17 00:00:00 2001 From: svntcreutz Date: Fri, 27 Jul 2007 02:07:20 +0000 Subject: the page says, that .data() converts to ustring to const char* http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html#3de9dc2a53cbb59ee51cb11968e2b6ef but now I get a other error! git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5650 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- src/xmlmenu.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/xmlmenu.cpp') diff --git a/src/xmlmenu.cpp b/src/xmlmenu.cpp index e63b455..64e743b 100644 --- a/src/xmlmenu.cpp +++ b/src/xmlmenu.cpp @@ -7,7 +7,6 @@ #include "xmlmenu.h" #include -//#include using namespace xmlpp; using namespace std; @@ -21,7 +20,7 @@ void XmlMenu::loadXmlMenu() { DomParser parser; - //TODO: patch the xmlfile with the xsd definition for validate + //TODO: patch the xmlfile with the xsd definition for validate the schema //parser.set_validate(); parser.set_substitute_entities(); //We just want the text to be resolved/unescaped automatically. parser.parse_file(File); @@ -84,9 +83,9 @@ void XmlMenu::parseNode(const Node* a_node, unsigned int Parent, MenuNode* paren //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((const char*) attribute->get_value()), geteOSState(attribute->get_value()))); + newparentNode =_rootMenuNode.AddChild(new VdrMenuItem(tr(attribute->get_value().data()), geteOSState(attribute->get_value()))); else - newparentNode = parentNode->AddChild(new VdrMenuItem(tr((const char*) attribute->get_value()), geteOSState(attribute->get_value()))); + newparentNode = parentNode->AddChild(new VdrMenuItem(tr(attribute->get_value().data()), geteOSState(attribute->get_value()))); } } } @@ -101,9 +100,9 @@ void XmlMenu::parseNode(const Node* a_node, unsigned int Parent, MenuNode* paren //cout << Parent << "-" << MainMenuIndex << "-" << myMenuNr << "-MenuItem=" << attribute->get_value() << endl; //TODO: search a valid cast/convert code if (parentNode == NULL) - newparentNode =_rootMenuNode.AddChild(new SubMenuItem((const char*) attribute->get_value())); + newparentNode =_rootMenuNode.AddChild(new SubMenuItem(attribute->get_value().data())); else - newparentNode = parentNode->AddChild(new SubMenuItem((const char*) attribute->get_value())); + newparentNode = parentNode->AddChild(new SubMenuItem(attribute->get_value().data())); } } } -- cgit v1.2.3