summaryrefslogtreecommitdiff
path: root/include/anope.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-03-01 05:06:19 +0000
committerSadie Powell <sadie@witchery.services>2022-03-01 05:06:19 +0000
commita8724b5f03adc05355c52fb7c75c9f1b6136348d (patch)
tree85f6924f1ffa0ad6b54bf8bf1c5202a1e1a07d99 /include/anope.h
parentb7e85f5161104d203a09494070336febdfbd2909 (diff)
Use noexcept instead of an empty exception specifier.
Diffstat (limited to 'include/anope.h')
-rw-r--r--include/anope.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/anope.h b/include/anope.h
index 1267a1d88..17677bf73 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -665,7 +665,7 @@ class CoreException : public std::exception
* Actually no, it does nothing. Never mind.
* @throws Nothing!
*/
- virtual ~CoreException() throw() = default;
+ virtual ~CoreException() noexcept = default;
/** Returns the reason for the exception.
* The module should probably put something informative here as the user will see this upon failure.
*/
@@ -694,7 +694,7 @@ class ModuleException : public CoreException
* Actually no, it does nothing. Never mind.
* @throws Nothing!
*/
- virtual ~ModuleException() throw() = default;
+ virtual ~ModuleException() noexcept = default;
};
class ConvertException : public CoreException
@@ -702,7 +702,7 @@ class ConvertException : public CoreException
public:
ConvertException(const Anope::string &reason = "") : CoreException(reason) { }
- virtual ~ConvertException() throw() = default;
+ virtual ~ConvertException() noexcept = default;
};
/** Convert something to a string