From bc3bcca765972109e8be003f45ca4f79e1e7d04d Mon Sep 17 00:00:00 2001 From: svntcreutz Date: Tue, 4 Sep 2007 23:07:23 +0000 Subject: grouped nameAttribute and name vars git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6131 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- src/menuconfiguration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/menuconfiguration.cpp') diff --git a/src/menuconfiguration.cpp b/src/menuconfiguration.cpp index 6711738..6e462cf 100644 --- a/src/menuconfiguration.cpp +++ b/src/menuconfiguration.cpp @@ -116,9 +116,9 @@ void MenuConfiguration::CreateMenuTree(const Element* menuRoot, MenuNode* menuNo if (childElement) { const Attribute* nameAttribute = childElement->get_attribute("name"); + string name = nameAttribute ? (string) UnicodeToLocaleOrIso8859(nameAttribute->get_value()) : ""; string type = childElement->get_name(); - string name = nameAttribute ? (string) UnicodeToLocaleOrIso8859(nameAttribute->get_value()) : ""; if ( type == "menu") { -- cgit v1.2.3