From 40dcc3c6b451b708058bf2f09eca0d15e46c1352 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 18 Jun 2018 21:19:22 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-noexcept=20p?= =?UTF-8?q?ass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes deprecated dynamic exception specifications. --- src/extension/input.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/extension') diff --git a/src/extension/input.h b/src/extension/input.h index 426f77ccc..c433272ca 100644 --- a/src/extension/input.h +++ b/src/extension/input.h @@ -31,16 +31,16 @@ public: /* this is a hack for this release, this will be private shortly */ public: struct open_failed : public std::exception { - ~open_failed() throw() override = default; - const char *what() const throw() override { return "Open failed"; } + ~open_failed() noexcept override = default; + const char *what() const noexcept override { return "Open failed"; } }; struct no_extension_found : public std::exception { - ~no_extension_found() throw() override = default; - const char *what() const throw() override { return "No suitable input extension found"; } + ~no_extension_found() noexcept override = default; + const char *what() const noexcept override { return "No suitable input extension found"; } }; struct open_cancelled : public std::exception { - ~open_cancelled() throw() override = default; - const char *what() const throw() override { return "Open was cancelled"; } + ~open_cancelled() noexcept override = default; + const char *what() const noexcept override { return "Open was cancelled"; } }; Input (Inkscape::XML::Node * in_repr, -- cgit v1.2.3