Remove dynamic exceptions
[anna.git] / source / ldap / Search.cpp
index aedcd12..b068f70 100644 (file)
@@ -24,7 +24,7 @@ using namespace anna::ldap;
 Search::attribute_pool Search::st_attributes;
 
 void Search::clear()
-throw() {
+{
   a_base.clear();
   a_scope = Scope::Base;
   clearFilter();
@@ -34,7 +34,7 @@ throw() {
 }
 
 void Search::clearAttributes()
-throw() {
+{
   for(attribute_iterator ii = attribute_begin(), maxii = attribute_end(); ii != maxii; ii ++)
     st_attributes.release(&attribute(ii));
 
@@ -42,7 +42,7 @@ throw() {
 }
 
 IdMessage Search::send(Session& session) const
-throw() {
+{
   IdMessage result(-1);
   LDAP* ldap = (LDAP*) session.getLDAP();
   int scope = -1;
@@ -51,6 +51,7 @@ throw() {
   case Scope::Base: scope = LDAP_SCOPE_BASE; break;
   case Scope::OneLevel: scope = LDAP_SCOPE_ONELEVEL; break;
   case Scope::SubTree: scope = LDAP_SCOPE_SUBTREE; break;
+  case Scope::None: return result; break;
   }
 
   int maxi = attribute_size() + 1;
@@ -89,7 +90,7 @@ throw() {
 }
 
 string Search::asString() const
-throw() {
+{
   string result("ldap::Search { ");
   result += Request::asString();
   result += " | Base: ";
@@ -104,7 +105,7 @@ throw() {
 }
 
 xml::Node* Search::asXML(xml::Node* parent) const
-throw() {
+{
   parent = Request::asXML(parent);
   parent->createAttribute("Base", a_base);
   parent->createAttribute("Scope", Scope::asText(a_scope));