summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmlmenu.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/xmlmenu.cpp b/src/xmlmenu.cpp
index a716627..d4e92ee 100644
--- a/src/xmlmenu.cpp
+++ b/src/xmlmenu.cpp
@@ -55,7 +55,7 @@ void XmlMenu::parseNode(const Element* element, MenuNode* menuNode)
{
if (const xmlpp::Attribute* nameAttribute = childElement->get_attribute("name"))
{
- MenuNode* subMenu = menuNode->AddChild(new SubMenuItem(nameAttribute->get_value().c_str()));
+ MenuNode* subMenu = menuNode->AddChild(new SubMenuItem(nameAttribute->get_value()));
parseNode(childElement, subMenu);
}
}
@@ -63,9 +63,8 @@ void XmlMenu::parseNode(const Element* element, MenuNode* menuNode)
{
if (const xmlpp::Attribute* nameAttribute = childElement->get_attribute("name"))
{
- const char* systemMenuItemText = nameAttribute->get_value().c_str();
- MenuNode* systemMenuItem = menuNode->AddChild(
- new VdrMenuItem(systemMenuItemText, geteOSState(systemMenuItemText)));
+ std::string systemMenuItemText = nameAttribute->get_value();
+ menuNode->AddChild(new VdrMenuItem(systemMenuItemText, geteOSState(systemMenuItemText)));
}
}
if (childElement->get_name() == "plugin")
@@ -77,8 +76,7 @@ void XmlMenu::parseNode(const Element* element, MenuNode* menuNode)
if (FindPluginByName(nameAttribute->get_value(), &pluginMainMenuEntry, pluginIndex))
{
- MenuNode* pluginMenuItem = menuNode->AddChild(
- new PluginMenuItem(pluginMainMenuEntry, pluginIndex));
+ menuNode->AddChild(new PluginMenuItem(pluginMainMenuEntry, pluginIndex));
}
}
}