From: Mikko Rasa Date: Sun, 27 Nov 2022 09:40:46 +0000 (+0200) Subject: Remove destructor declarations from exception classes X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=commitdiff_plain;h=73eebea348ced3b684d356238858c00b72cf5361 Remove destructor declarations from exception classes Destructors are implicitly non-throwing in C++11 so these are no longer necessary. --- diff --git a/source/graphics/glcontext.h b/source/graphics/glcontext.h index f6357c3..986dd91 100644 --- a/source/graphics/glcontext.h +++ b/source/graphics/glcontext.h @@ -34,7 +34,6 @@ class unsupported_gl_mode: public std::runtime_error { public: unsupported_gl_mode(const GLOptions &); - virtual ~unsupported_gl_mode() throw () { } private: static std::string format_version(const GLOptions &); diff --git a/source/graphics/imageloader.h b/source/graphics/imageloader.h index fbfd4d6..9a69aca 100644 --- a/source/graphics/imageloader.h +++ b/source/graphics/imageloader.h @@ -10,14 +10,12 @@ class unsupported_image_format: public std::runtime_error { public: unsupported_image_format(const std::string &w): std::runtime_error(w) { } - virtual ~unsupported_image_format() throw() { } }; class bad_image_data: public std::runtime_error { public: bad_image_data(const std::string &w): std::runtime_error(w) { } - virtual ~bad_image_data() throw() { } }; diff --git a/source/graphics/videomode.h b/source/graphics/videomode.h index a9c58bd..205245c 100644 --- a/source/graphics/videomode.h +++ b/source/graphics/videomode.h @@ -13,7 +13,6 @@ class unsupported_video_mode: public std::runtime_error { public: unsupported_video_mode(const VideoMode &); - virtual ~unsupported_video_mode() throw () { } }; diff --git a/source/graphics/vulkancontext.h b/source/graphics/vulkancontext.h index 666a2b0..d5cc4c3 100644 --- a/source/graphics/vulkancontext.h +++ b/source/graphics/vulkancontext.h @@ -14,7 +14,6 @@ class vulkan_error: public std::runtime_error { public: vulkan_error(unsigned, const char *); - virtual ~vulkan_error() throw() { } private: static std::string get_error_message(unsigned); diff --git a/source/input/device.h b/source/input/device.h index 4544776..5ef6305 100644 --- a/source/input/device.h +++ b/source/input/device.h @@ -14,7 +14,6 @@ class device_not_available: public std::runtime_error { public: device_not_available(const std::string &w): std::runtime_error(w) { } - virtual ~device_not_available() throw() { } };