- if (!strcmp((const char *) ptr->name, "port"))
- {
- std::string port = yp2::xml::get_text(ptr);
- ports.push_back(port);
-
- }
- else
- {
- throw yp2::filter::FilterException("Bad element "
- + std::string((const char *)
- ptr->name));
- }
+ std::string port = yp2::xml::get_text(ptr);
+ ports.push_back(port);
+
+ }
+ else
+ {
+ throw yp2::filter::FilterException("Bad element "
+ + std::string((const char *)
+ ptr->name));