diff options
author | svntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-07-27 02:07:20 +0000 |
---|---|---|
committer | svntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-07-27 02:07:20 +0000 |
commit | c2322a27d84c76b3ccbc399d3e6c61678600f011 (patch) | |
tree | 979a2e5241d9a08ce805e93d1b3a7378ad0eb888 /src/xmlmenu.cpp | |
parent | ca759e5691df7d907fb523f7a5f3b32a51324892 (diff) | |
download | vdr-plugin-menuorg-c2322a27d84c76b3ccbc399d3e6c61678600f011.tar.gz vdr-plugin-menuorg-c2322a27d84c76b3ccbc399d3e6c61678600f011.tar.bz2 |
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
Diffstat (limited to 'src/xmlmenu.cpp')
-rw-r--r-- | src/xmlmenu.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
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 <iostream> -//#include <vdr/submenupatch.h> 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())); } } } |