aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-05-24 15:15:02 +0200
committerGitHub <[email protected]>2023-05-24 15:15:02 +0200
commitc69b7341838f86f73519e20b83996b609cda7f6c (patch)
tree394a00b17814c943059513f4781065c236753d3b /src/zencore/include
parentcache log sessionid (#297) (diff)
downloadzen-c69b7341838f86f73519e20b83996b609cda7f6c.tar.xz
zen-c69b7341838f86f73519e20b83996b609cda7f6c.zip
block destructors from throwing exceptions (#321)
* ~FileMapping() is not allowed to throw exceptions * ~ScopedActivityBase() should not call ZEN_ASSERT (which causes SIGABORT on error) * ProjectStore::Project::WriteAccessTimes() which is called from ProjectStore::~Project() must not throw exceptions * changelog
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/windows.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zencore/include/zencore/windows.h b/src/zencore/include/zencore/windows.h
index 333188cb3..6c238f845 100644
--- a/src/zencore/include/zencore/windows.h
+++ b/src/zencore/include/zencore/windows.h
@@ -252,7 +252,7 @@ public:
m_hMapping = NULL;
}
- ~FileMapping() throw() { Unmap(); }
+ ~FileMapping() noexcept(true) { Unmap(); }
HRESULT MapFile(_In_ HANDLE hFile,
_In_ SIZE_T nMappingSize = 0,
@@ -372,7 +372,7 @@ public:
return S_OK;
}
- HRESULT Unmap() throw()
+ HRESULT Unmap() noexcept(true)
{
HRESULT hr = S_OK;