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/io/inkscapestream.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/io') diff --git a/src/io/inkscapestream.h b/src/io/inkscapestream.h index da6d320d8..2e0a7aa20 100644 --- a/src/io/inkscapestream.h +++ b/src/io/inkscapestream.h @@ -21,13 +21,13 @@ class StreamException : public std::exception { public: - StreamException(const char *theReason) throw() + StreamException(const char *theReason) noexcept { reason = theReason; } - StreamException(Glib::ustring &theReason) throw() + StreamException(Glib::ustring &theReason) noexcept { reason = theReason; } - ~StreamException() throw() override + ~StreamException() noexcept override = default; - char const *what() const throw() override + char const *what() const noexcept override { return reason.c_str(); } private: -- cgit v1.2.3