Add missing constructors and assignment operators
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
… to Instance and Connection.
This commit is contained in:
parent
fc32e8ac0a
commit
9d37bebdc8
@ -92,6 +92,25 @@ public:
|
|||||||
_instance.copy_connection_properties(*this);
|
_instance.copy_connection_properties(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* @brief Copy constructor. A new CURLWrapper is constructed.
|
||||||
|
*
|
||||||
|
* @since 0.5.2
|
||||||
|
*/
|
||||||
|
Connection(const Connection &other) = default;
|
||||||
|
|
||||||
|
//! Move constructor
|
||||||
|
Connection(Connection &&other) noexcept = delete;
|
||||||
|
|
||||||
|
//! Destructor
|
||||||
|
~Connection() noexcept override = default;
|
||||||
|
|
||||||
|
//! Copy assignment operator
|
||||||
|
Connection& operator=(const Connection &other) = delete;
|
||||||
|
|
||||||
|
//! Move assignment operator
|
||||||
|
Connection& operator=(Connection &&other) noexcept = delete;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Make a HTTP GET call with parameters.
|
* @brief Make a HTTP GET call with parameters.
|
||||||
*
|
*
|
||||||
|
@ -65,6 +65,25 @@ public:
|
|||||||
, _max_chars{0}
|
, _max_chars{0}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* @brief Copy constructor. A new CURLWrapper is constructed.
|
||||||
|
*
|
||||||
|
* @since 0.5.2
|
||||||
|
*/
|
||||||
|
Instance(const Instance &other) = default;
|
||||||
|
|
||||||
|
//! Move constructor
|
||||||
|
Instance(Instance &&other) noexcept = delete;
|
||||||
|
|
||||||
|
//! Destructor
|
||||||
|
~Instance() noexcept override = default;
|
||||||
|
|
||||||
|
//! Copy assignment operator
|
||||||
|
Instance& operator=(const Instance &other) = delete;
|
||||||
|
|
||||||
|
//! Move assignment operator
|
||||||
|
Instance& operator=(Instance &&other) noexcept = delete;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Set the properties of the connection of the calling class up.
|
* @brief Set the properties of the connection of the calling class up.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user