X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcomm%2FAccessPoint.cpp;h=bf015799ac296df0feaeef91dbc85329b0663e41;hp=ef1bc8f8c31153a236130917baeef5c7394c832c;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/comm/AccessPoint.cpp b/source/comm/AccessPoint.cpp index ef1bc8f..bf01579 100644 --- a/source/comm/AccessPoint.cpp +++ b/source/comm/AccessPoint.cpp @@ -19,7 +19,7 @@ using namespace std; using namespace anna; bool comm::AccessPoint::operator == (const comm::AccessPoint& rhs) const -throw() { +{ if(rhs.isNull() && this->isNull()) return true; @@ -33,7 +33,7 @@ throw() { } comm::AccessPoint& comm::AccessPoint::operator = (const INetAddress & inetAddress) -throw() { +{ if(a_path != NULL) { delete a_path; a_path = NULL; @@ -44,7 +44,7 @@ throw() { } comm::AccessPoint& comm::AccessPoint::operator = (const std::string & path) -throw() { +{ if(a_path == &path) return *this; @@ -59,7 +59,7 @@ throw() { } comm::AccessPoint& comm::AccessPoint::operator = (const AccessPoint & rhs) -throw() { +{ if(this == &rhs) return *this; @@ -78,7 +78,7 @@ throw() { } void comm::AccessPoint::translate(const comm::Socket& socket, sockaddr*& s, int& len) -throw(RuntimeException) { +noexcept(false) { switch(socket.getDomain()) { case Socket::Domain::Inet: @@ -123,7 +123,7 @@ throw(RuntimeException) { } void comm::AccessPoint::asString(std::string& msg) const -throw() { +{ msg += "{ "; if(a_inetAddress.isNull() == false) @@ -138,7 +138,7 @@ throw() { } void comm::AccessPoint::asXML(const char* name, xml::Node* parent) const -throw(RuntimeException) { +noexcept(false) { xml::Node* accessPoint = parent->createChild(name); if(a_inetAddress.isNull() == false) @@ -148,7 +148,7 @@ throw(RuntimeException) { } std::string comm::AccessPoint::serialize() const -throw() { +{ std::string result; if(a_inetAddress.isNull() == false)