1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-05-02 23:27:30 +02:00

fix: Deprecated C++ exception specification

This commit is contained in:
Sirius Bakke 2018-05-02 22:59:03 +02:00
parent f7f1310408
commit 276f9ef19f
2 changed files with 8 additions and 8 deletions

View File

@ -76,7 +76,7 @@ void AddressRangeIPv6::setAddress(const InetAddr &a)
void AddressRangeIPv6::setNetmask(const InetAddr& ) {}
FWObject& AddressRangeIPv6::shallowDuplicate(const FWObject *o, bool preserve_id) throw(FWException)
FWObject& AddressRangeIPv6::shallowDuplicate(const FWObject *o, bool preserve_id)
{
const AddressRangeIPv6 *n = dynamic_cast<const AddressRangeIPv6 *>(o);
if (n==NULL) {
@ -93,7 +93,7 @@ FWObject& AddressRangeIPv6::shallowDuplicate(const FWObject *o, bool preserve_id
return FWObject::shallowDuplicate(o, preserve_id);
}
bool AddressRangeIPv6::cmp(const FWObject *obj, bool recursive) throw(FWException)
bool AddressRangeIPv6::cmp(const FWObject *obj, bool recursive)
{
if (AddressRangeIPv6::constcast(obj)==NULL) return false;
if (!FWObject::cmp(obj, recursive)) return false;
@ -112,7 +112,7 @@ bool AddressRangeIPv6::cmp(const FWObject *obj, bool recursive) throw(FWExceptio
return (o1b==o2b && o1e==o2e);
}
void AddressRangeIPv6::fromXML(xmlNodePtr root) throw(FWException)
void AddressRangeIPv6::fromXML(xmlNodePtr root)
{
FWObject::fromXML(root);
@ -127,7 +127,7 @@ void AddressRangeIPv6::fromXML(xmlNodePtr root) throw(FWException)
FREEXMLBUFF(n);
}
xmlNodePtr AddressRangeIPv6::toXML(xmlNodePtr xml_parent_node) throw(FWException)
xmlNodePtr AddressRangeIPv6::toXML(xmlNodePtr xml_parent_node)
{
xmlNodePtr me = FWObject::toXML(xml_parent_node);

View File

@ -63,11 +63,11 @@ class AddressRangeIPv6 : public Address
virtual void setNetmask(const InetAddr &nm);
virtual FWObject& shallowDuplicate(const FWObject *obj, bool preserve_id) throw(FWException);
virtual bool cmp(const FWObject *obj, bool recursive=false) throw(FWException);
virtual FWObject& shallowDuplicate(const FWObject *obj, bool preserve_id);
virtual bool cmp(const FWObject *obj, bool recursive=false);
virtual void fromXML (xmlNodePtr parent) throw(FWException);;
virtual xmlNodePtr toXML (xmlNodePtr xml_parent_node) throw(FWException);;
virtual void fromXML (xmlNodePtr parent);
virtual xmlNodePtr toXML (xmlNodePtr xml_parent_node);
virtual bool isPrimaryObject() const { return true; }