MSVC (and older versions of Clang and GCC) treat {} as a UDF and so some optimizations may be avoided. Setting these to '= default' allows the compiler to perform addional optimization steps. Also removed some unnecessary destructors.
@@ -112,7 +112,7 @@ namespace ARIASDK_NS_BEGIN
/// <summary>
/// The IHttpRequest class destructor.
/// </summary>
- virtual ~IHttpRequest() noexcept {}
+ virtual ~IHttpRequest() noexcept = default;
/// <summary>
/// Gets the request ID.
@@ -176,7 +176,7 @@ namespace ARIASDK_NS_BEGIN
/// <summary>
/// The IHttpResponse class destructor.
/// </summary>
- virtual ~IHttpResponse() noexcept {}
+ virtual ~IHttpResponse() noexcept = default;
/// <summary>
/// Gets the response ID.
@@ -261,14 +261,6 @@ namespace ARIASDK_NS_BEGIN
{
}
-
- /// <summary>
- /// The SimpleHttpRequest destructor.
- /// </summary>
- virtual ~SimpleHttpRequest() noexcept
- {
- }
-
/// <summary>
/// Gets the HTTP request ID.
/// </summary>
@@ -384,13 +376,6 @@ namespace ARIASDK_NS_BEGIN
m_result(HttpResult_LocalFailure),
m_statusCode(0)
{
- }
-
- /// <summary>
- /// The SimpleHttpResponse class destructor.
- /// </summary>
- virtual ~SimpleHttpResponse() noexcept
- {
}
/// <summary>
@@ -481,7 +466,7 @@ namespace ARIASDK_NS_BEGIN
/// <summary>
/// The IHttpResponseCallback class destructor.
/// </summary>
- virtual ~IHttpResponseCallback() {}
+ virtual ~IHttpResponseCallback() noexcept = default;
/// <summary>
/// Called when an HTTP request completes.
@@ -515,7 +500,7 @@ namespace ARIASDK_NS_BEGIN
class IHttpClient : public IModule
{
public:
- virtual ~IHttpClient() noexcept {}
+ virtual ~IHttpClient() noexcept = default;
/// <summary>
/// Creates an empty HTTP request object.
