Add explicit assignment and desctructor for RawResponse and RequestFailedException (#2312)
This commit is contained in:
parent
26f43fd359
commit
f2c0546386
@ -107,13 +107,9 @@ namespace Azure { namespace Core {
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Constructs a new `RequestFailedException`.
|
||||
* @note Transfers ownership of the #Azure::Core::Http::RawResponse to the new
|
||||
* `RequestFailedException`.
|
||||
*
|
||||
* @param other An rvalue reference for moving the `RequestFailedException`.
|
||||
*/
|
||||
RequestFailedException(RequestFailedException&& other) = default;
|
||||
RequestFailedException& operator=(const RequestFailedException&) = delete;
|
||||
RequestFailedException& operator=(RequestFailedException&&) = delete;
|
||||
~RequestFailedException() = default;
|
||||
};
|
||||
}} // namespace Azure::Core
|
||||
|
||||
@ -81,13 +81,10 @@ namespace Azure { namespace Core { namespace Http {
|
||||
m_body = response.GetBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Constructs a new `RawResponse`.
|
||||
* @note Transfers ownership of the `RawResponse` to the new `RawResponse`.
|
||||
*
|
||||
* @param response An rvalue reference for moving the raw response.
|
||||
*/
|
||||
RawResponse(RawResponse&& response) = default;
|
||||
RawResponse& operator=(RawResponse const&) = delete;
|
||||
RawResponse& operator=(RawResponse&&) = delete;
|
||||
~RawResponse() = default;
|
||||
|
||||
// ===== Methods used to build HTTP response =====
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user