]> git.tdb.fi Git - libs/gui.git/commitdiff
Remove destructor declarations from exception classes
authorMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 09:40:46 +0000 (11:40 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 27 Nov 2022 14:20:17 +0000 (16:20 +0200)
Destructors are implicitly non-throwing in C++11 so these are no longer
necessary.

source/graphics/glcontext.h
source/graphics/imageloader.h
source/graphics/videomode.h
source/graphics/vulkancontext.h
source/input/device.h

index f6357c3cce475513df04dc276a101d79bba42a15..986dd91e9642cb68832a3d5021d9b66cc9ff7d5a 100644 (file)
@@ -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 &);
index fbfd4d66e0c3c647c5c2171d03da04d4ccc1848d..9a69aca8da3058f3a903e30e92575a9dec21d346 100644 (file)
@@ -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() { }
 };
 
 
index a9c58bd003d1cb26c0f8c052832194cc1446bcb6..205245c630ff98e43179ecc1f94dac723a5f57bd 100644 (file)
@@ -13,7 +13,6 @@ class unsupported_video_mode: public std::runtime_error
 {
 public:
        unsupported_video_mode(const VideoMode &);
-       virtual ~unsupported_video_mode() throw () { }
 };
 
 
index 666a2b06daafdca22d4467efa5d38d857ef155d6..d5cc4c3f1e1f176ed97fcc3aff72e46f04c5366b 100644 (file)
@@ -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);
index 4544776ac3a36f1f6b36d7dfe0d7a79cdaacb232..5ef63053ed8e9b59b5ad3442edce6d1f6c28b402 100644 (file)
@@ -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() { }
 };