noexcept adjustments (#4200)

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2023-01-03 11:17:16 -08:00 committed by GitHub
parent fd3b9a6180
commit 152a847dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ public:
* @brief Destructs the contained value, if there is one.
*
*/
void Reset() noexcept /* enforces termination */
void Reset() noexcept(std::is_nothrow_destructible<T>::value) /* enforces termination */
{
if (m_hasValue)
{

View File

@ -139,7 +139,7 @@ namespace Azure { namespace Core {
* @brief Gets the current #Azure::Core::OperationStatus of the long-running operation.
*
*/
OperationStatus Status() const noexcept { return m_status; }
OperationStatus const& Status() const noexcept { return m_status; }
/**
* @brief Checks if the long-running operation is completed.

View File

@ -55,7 +55,7 @@ namespace Azure { namespace Core { namespace Http { namespace _detail {
DWORD_PTR dwContext,
DWORD dwInternetStatus,
LPVOID lpvStatusInformation,
DWORD dwStatusInformationLength) noexcept;
DWORD dwStatusInformationLength);
/*
* Callback from WinHTTP called after the TLS certificates are received when the caller sets

View File

@ -517,7 +517,7 @@ namespace Azure { namespace Core { namespace Http { namespace _detail {
DWORD_PTR dwContext,
DWORD internetStatus,
LPVOID statusInformation,
DWORD statusInformationLength) noexcept
DWORD statusInformationLength)
{
// If we're called before our context has been set (on Open and Close callbacks), ignore the
// status callback.