From 27c26deb38493c58ae0b388d22f55cc93fc68881 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 8 Jun 2011 16:30:12 +0200 Subject: [PATCH] No need to pass children --- src/filter_frontend_net.cpp | 2 +- src/filter_virt_db.cpp | 2 +- src/filter_z3950_client.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/filter_frontend_net.cpp b/src/filter_frontend_net.cpp index 362e489..6fc9ff4 100644 --- a/src/filter_frontend_net.cpp +++ b/src/filter_frontend_net.cpp @@ -410,7 +410,7 @@ void mp::filter::FrontendNet::configure(const xmlNode * ptr, bool test_only) } else if (!strcmp((const char *) ptr->name, "connect-max")) { - m_p->m_connect_max = mp::xml::get_int(ptr->children, 0); + m_p->m_connect_max = mp::xml::get_int(ptr, 0); } else { diff --git a/src/filter_virt_db.cpp b/src/filter_virt_db.cpp index c9474c8..71ab2c3 100644 --- a/src/filter_virt_db.cpp +++ b/src/filter_virt_db.cpp @@ -943,7 +943,7 @@ void mp::filter::VirtualDB::configure(const xmlNode * ptr, bool test_only) continue; if (!strcmp((const char *) ptr->name, "pass-vhosts")) { - m_p->pass_vhosts = mp::xml::get_bool(ptr->children, false); + m_p->pass_vhosts = mp::xml::get_bool(ptr, false); } else if (!strcmp((const char *) ptr->name, "virtual")) { diff --git a/src/filter_z3950_client.cpp b/src/filter_z3950_client.cpp index b975f50..06f58e1 100644 --- a/src/filter_z3950_client.cpp +++ b/src/filter_z3950_client.cpp @@ -465,7 +465,7 @@ void yf::Z3950Client::configure(const xmlNode *ptr, bool test_only) continue; if (!strcmp((const char *) ptr->name, "timeout")) { - m_p->m_timeout_sec = mp::xml::get_int(ptr->children, 30); + m_p->m_timeout_sec = mp::xml::get_int(ptr, 30); } else if (!strcmp((const char *) ptr->name, "default_target")) { @@ -477,11 +477,11 @@ void yf::Z3950Client::configure(const xmlNode *ptr, bool test_only) } else if (!strcmp((const char *) ptr->name, "max-sockets")) { - m_p->m_max_sockets = mp::xml::get_int(ptr->children, 0); + m_p->m_max_sockets = mp::xml::get_int(ptr, 0); } else if (!strcmp((const char *) ptr->name, "force_close")) { - m_p->m_force_close = mp::xml::get_bool(ptr->children, 0); + m_p->m_force_close = mp::xml::get_bool(ptr, 0); } else { -- 1.7.10.4