From a8724b5f03adc05355c52fb7c75c9f1b6136348d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 1 Mar 2022 05:06:19 +0000 Subject: Use noexcept instead of an empty exception specifier. --- include/modules/ldap.h | 2 +- include/modules/sql.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/modules') diff --git a/include/modules/ldap.h b/include/modules/ldap.h index 2b4177657..95c780599 100644 --- a/include/modules/ldap.h +++ b/include/modules/ldap.h @@ -13,7 +13,7 @@ class LDAPException : public ModuleException public: LDAPException(const Anope::string &reason) : ModuleException(reason) { } - virtual ~LDAPException() throw() = default; + virtual ~LDAPException() noexcept = default; }; struct LDAPModification diff --git a/include/modules/sql.h b/include/modules/sql.h index 7ee150b83..e94a36a1b 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -84,7 +84,7 @@ namespace SQL public: Exception(const Anope::string &reason) : ModuleException(reason) { } - virtual ~Exception() throw() = default; + virtual ~Exception() noexcept = default; }; /** A SQL query -- cgit