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 /bridges/inc/msvc | |
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 'bridges/inc/msvc')
-rw-r--r-- | bridges/inc/msvc/amd64.hxx | 4 | ||||
-rw-r--r-- | bridges/inc/msvc/except.hxx | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/bridges/inc/msvc/amd64.hxx b/bridges/inc/msvc/amd64.hxx index fb095446b097..eea88ea96f2f 100644 --- a/bridges/inc/msvc/amd64.hxx +++ b/bridges/inc/msvc/amd64.hxx @@ -33,7 +33,7 @@ struct ExceptionType final ExceptionTypeInfo exc_type_info; explicit ExceptionType(unsigned char* pCode, sal_uInt64 pCodeBase, - typelib_TypeDescription* pTD) throw(); + typelib_TypeDescription* pTD) noexcept; ExceptionType(const ExceptionType&) = delete; ExceptionType& operator=(const ExceptionType&) = delete; @@ -51,7 +51,7 @@ struct RaiseInfo final unsigned char* _code; sal_uInt64 _codeBase; - explicit RaiseInfo(typelib_TypeDescription* pTD) throw(); + explicit RaiseInfo(typelib_TypeDescription* pTD) noexcept; }; #pragma pack(pop) diff --git a/bridges/inc/msvc/except.hxx b/bridges/inc/msvc/except.hxx index aba0ce46248e..798fc44f147c 100644 --- a/bridges/inc/msvc/except.hxx +++ b/bridges/inc/msvc/except.hxx @@ -61,12 +61,12 @@ class ExceptionTypeInfo final char m_d_name[1]; public: - explicit ExceptionTypeInfo(void* data, const char* d_name) throw() + explicit ExceptionTypeInfo(void* data, const char* d_name) noexcept : m_data(data) { ::strcpy(m_d_name, d_name); // #100211# - checked } - virtual ~ExceptionTypeInfo() throw(); + virtual ~ExceptionTypeInfo() noexcept; }; class ExceptionTypeInfoWrapper final @@ -75,7 +75,7 @@ class ExceptionTypeInfoWrapper final ExceptionTypeInfo info; public: - explicit ExceptionTypeInfoWrapper(void* m_data, const char* m_d_name) throw() + explicit ExceptionTypeInfoWrapper(void* m_data, const char* m_d_name) noexcept : info(m_data, m_d_name) { type_info_size = sizeof(ExceptionTypeInfo) + strlen(m_d_name); @@ -90,13 +90,13 @@ class RTTInfos final osl::Mutex m_aMutex; t_string2PtrMap m_allRTTI; - RTTInfos() throw(); - ExceptionTypeInfoWrapper* getInfo(OUString const& rUNOname) throw(); + RTTInfos() noexcept; + ExceptionTypeInfoWrapper* getInfo(OUString const& rUNOname) noexcept; public: ~RTTInfos(); - static type_info* get(OUString const& rUNOname, int* len = nullptr) throw(); + static type_info* get(OUString const& rUNOname, int* len = nullptr) noexcept; }; class ExceptionInfos final @@ -105,12 +105,12 @@ class ExceptionInfos final t_string2PtrMap m_allRaiseInfos; public: - static RaiseInfo* getRaiseInfo(typelib_TypeDescription* pTD) throw(); + static RaiseInfo* getRaiseInfo(typelib_TypeDescription* pTD) noexcept; static DWORD allocationGranularity; - ExceptionInfos() throw(); - ~ExceptionInfos() throw(); + ExceptionInfos() noexcept; + ~ExceptionInfos() noexcept; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |