From fad6d50149f4d49eda0d5d7898a4944fe63a246e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 18 Oct 2012 10:56:10 +0200 Subject: [PATCH] frontend_net: simplify, use mp::xml::get_route --- src/filter_frontend_net.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/filter_frontend_net.cpp b/src/filter_frontend_net.cpp index 4743c27..396f6db 100644 --- a/src/filter_frontend_net.cpp +++ b/src/filter_frontend_net.cpp @@ -625,15 +625,9 @@ void yf::FrontendNet::configure(const xmlNode * ptr, bool test_only, if (!strcmp((const char *) ptr->name, "port")) { Port port; - const struct _xmlAttr *attr; - for (attr = ptr->properties; attr; attr = attr->next) - { - if (!strcmp((const char *) attr->name, "route")) - port.route = mp::xml::get_text(attr); - } + port.route = mp::xml::get_route(ptr); port.port = mp::xml::get_text(ptr); ports.push_back(port); - } else if (!strcmp((const char *) ptr->name, "threads")) { -- 1.7.10.4