diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-05-18 14:39:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-19 08:53:34 +0200 |
commit | 4bea7449711f1832c1db0e9b5447fb2c3415c068 (patch) | |
tree | 3ac74c8c2bd2c387e36c2bbdcdf405b7f90eb8b2 /shell | |
parent | 290dd9379e3f219f140ad6fca1fc01a3cecb6612 (diff) |
loplugin:noexcept (clang-cl)
Change-Id: Ife669f959358992b547b408ab5d1f6bf1c1d14bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115744
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/zipfile/zipexcptn.cxx | 8 | ||||
-rw-r--r-- | shell/source/win32/zipfile/zipexcptn.hxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/shell/source/win32/zipfile/zipexcptn.cxx b/shell/source/win32/zipfile/zipexcptn.cxx index 623d511fb592..9b9054ceb435 100644 --- a/shell/source/win32/zipfile/zipexcptn.cxx +++ b/shell/source/win32/zipfile/zipexcptn.cxx @@ -27,7 +27,7 @@ RuntimeException::RuntimeException(int Error) : } -RuntimeException::~RuntimeException() throw() +RuntimeException::~RuntimeException() noexcept { } @@ -44,7 +44,7 @@ ZipException::ZipException(int Error) : } -const char* ZipException::what() const throw() +const char* ZipException::what() const noexcept { return nullptr; } @@ -57,14 +57,14 @@ Win32Exception::Win32Exception(int Error) : } -Win32Exception::~Win32Exception() throw() +Win32Exception::~Win32Exception() noexcept { if (m_MsgBuff) LocalFree(m_MsgBuff); } -const char* Win32Exception::what() const throw() +const char* Win32Exception::what() const noexcept { if (m_MsgBuff == nullptr) { diff --git a/shell/source/win32/zipfile/zipexcptn.hxx b/shell/source/win32/zipfile/zipexcptn.hxx index f6c6205058da..eb4911d9bb6a 100644 --- a/shell/source/win32/zipfile/zipexcptn.hxx +++ b/shell/source/win32/zipfile/zipexcptn.hxx @@ -28,7 +28,7 @@ class RuntimeException : public std::exception { public: explicit RuntimeException(int Error); - virtual ~RuntimeException() throw() override; + virtual ~RuntimeException() noexcept override; int GetErrorCode() const; @@ -41,16 +41,16 @@ class ZipException : public RuntimeException public: explicit ZipException(int Error); - virtual const char* what() const throw() override; + virtual const char* what() const noexcept override; }; class Win32Exception : public RuntimeException { public: explicit Win32Exception(int Error); - virtual ~Win32Exception() throw() override; + virtual ~Win32Exception() noexcept override; - virtual const char* what() const throw() override; + virtual const char* what() const noexcept override; private: mutable char* m_MsgBuff; |