diff options
author | sfan5 <sfan5@live.de> | 2022-02-23 20:02:58 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-02-26 14:39:41 +0100 |
commit | 04bd253390cc6c67a555e4837e7e48d524fdf014 (patch) | |
tree | 5b253a7ab2799686da9bdc85083e264707d06b4d /src/unittest/test_address.cpp | |
parent | 7db751df3bc4e3b3aff80cdacd2883f3a7a0940b (diff) | |
download | minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.tar.gz minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.tar.bz2 minetest-04bd253390cc6c67a555e4837e7e48d524fdf014.zip |
Move the codebase to C++14
Diffstat (limited to 'src/unittest/test_address.cpp')
-rw-r--r-- | src/unittest/test_address.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unittest/test_address.cpp b/src/unittest/test_address.cpp index 35d4effb6..f46135577 100644 --- a/src/unittest/test_address.cpp +++ b/src/unittest/test_address.cpp @@ -56,7 +56,7 @@ void TestAddress::testIsLocalhost() UASSERT(!Address(172, 45, 37, 68, 0).isLocalhost()); // v6 - std::unique_ptr<IPv6AddressBytes> ipv6Bytes(new IPv6AddressBytes()); + auto ipv6Bytes = std::make_unique<IPv6AddressBytes>(); std::vector<u8> ipv6RawAddr = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}; memcpy(ipv6Bytes->bytes, &ipv6RawAddr[0], 16); UASSERT(Address(ipv6Bytes.get(), 0).isLocalhost()) |