0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

IP::Addr: remove explicit copy constructor that Coverity warns could throw

By removing the explicit copy constructor, we fall back to
a default copy constructor which would do a bitwise copy
of the object, which should be okay for this object, and
would have no potential to throw an exception.

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2021-07-06 11:47:07 -06:00
parent 0f11551143
commit 440b3a599d

View File

@ -80,11 +80,6 @@ namespace openvpn {
{
}
Addr(const Addr& other)
: Addr(other, nullptr, UNSPEC)
{
}
template <typename TITLE>
Addr(const std::string& ipstr, const TITLE& title, const Version required_version)
: Addr(from_string(ipstr, title, required_version))