From 83f553a382ce554951594de85e4fd7b854305463 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 20 Aug 2023 12:57:30 +0300 Subject: [PATCH] Remove unnecessary destructors from exception classes --- source/arrangement.h | 1 - source/container.h | 1 - source/list.h | 1 - 3 files changed, 3 deletions(-) diff --git a/source/arrangement.h b/source/arrangement.h index 2decb3e..15fb47c 100644 --- a/source/arrangement.h +++ b/source/arrangement.h @@ -15,7 +15,6 @@ class MSPGLTK_API arrangement_error: public std::logic_error { public: arrangement_error(const std::string &w): std::logic_error(w) { } - virtual ~arrangement_error() throw() { } }; class MSPGLTK_API Arrangement diff --git a/source/container.h b/source/container.h index adaee6f..a0cba3b 100644 --- a/source/container.h +++ b/source/container.h @@ -14,7 +14,6 @@ class MSPGLTK_API hierarchy_error: public std::logic_error { public: hierarchy_error(const std::string &); - virtual ~hierarchy_error() throw() { } }; diff --git a/source/list.h b/source/list.h index d6cb2b5..37d4d7a 100644 --- a/source/list.h +++ b/source/list.h @@ -20,7 +20,6 @@ class MSPGLTK_API incompatible_data: public std::logic_error { public: incompatible_data(const std::type_info &); - virtual ~incompatible_data() throw() { } }; -- 2.45.2