forked from qt-creator/qt-creator
Botan: Fix compilation with MSVC2013
noexcept is not supported. Change-Id: Iee6f80a3e99191ccc92637aea42c5043d4f2d212 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ea520e3f97
commit
b57a35ab55
4
src/libs/3rdparty/botan/botan.cpp
vendored
4
src/libs/3rdparty/botan/botan.cpp
vendored
@@ -379,7 +379,7 @@ class Mutex
|
||||
* Unlock the mutex
|
||||
*/
|
||||
virtual void unlock() = 0;
|
||||
virtual ~Mutex() noexcept(false) {}
|
||||
virtual ~Mutex() Q_DECL_NOEXCEPT_EXPR(false) {}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -3296,7 +3296,7 @@ void* MemoryMapping_Allocator::alloc_block(size_t n)
|
||||
throw MemoryMapping_Failed("Could not unlink temporary file");
|
||||
}
|
||||
|
||||
~TemporaryFile() noexcept(false)
|
||||
~TemporaryFile() Q_DECL_NOEXCEPT_EXPR(false)
|
||||
{
|
||||
/*
|
||||
* We can safely close here, because post-mmap the file
|
||||
|
2
src/libs/3rdparty/botan/botan.h
vendored
2
src/libs/3rdparty/botan/botan.h
vendored
@@ -390,7 +390,7 @@ class BOTAN_DLL Allocator
|
||||
*/
|
||||
virtual void destroy() {}
|
||||
|
||||
virtual ~Allocator() noexcept(false) {}
|
||||
virtual ~Allocator() Q_DECL_NOEXCEPT_EXPR(false) {}
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user