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:
parent
0f11551143
commit
440b3a599d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user