diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-20 20:59:46 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-26 19:57:48 +0200 |
commit | 072fdf348826db6bc75207540c55e8e275227516 (patch) | |
tree | 433cf29095b8796dd737790fa0be693b1b836613 /src/Bindings/ManualBindings_Network.cpp | |
parent | 1.14 connection support (diff) | |
download | cuberite-072fdf348826db6bc75207540c55e8e275227516.tar cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.gz cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.bz2 cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.lz cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.xz cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.zst cuberite-072fdf348826db6bc75207540c55e8e275227516.zip |
Diffstat (limited to 'src/Bindings/ManualBindings_Network.cpp')
-rw-r--r-- | src/Bindings/ManualBindings_Network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings_Network.cpp b/src/Bindings/ManualBindings_Network.cpp index 4a7dd2367..fb60e4e0a 100644 --- a/src/Bindings/ManualBindings_Network.cpp +++ b/src/Bindings/ManualBindings_Network.cpp @@ -169,7 +169,7 @@ static int tolua_cNetwork_HostnameToIP(lua_State * L) ASSERT(callbacks != nullptr); // Invalid callbacks would have resulted in GetStackValues() returning false // Try to look up: - bool res = cNetwork::HostnameToIP(host, std::make_shared<cLuaNameLookup>(host, std::move(callbacks))); + bool res = cNetwork::HostnameToIP(host, std::make_unique<cLuaNameLookup>(host, std::move(callbacks))); S.Push(res); return 1; } @@ -205,7 +205,7 @@ static int tolua_cNetwork_IPToHostname(lua_State * L) ASSERT(callbacks != nullptr); // Invalid callbacks would have resulted in GetStackValues() returning false // Try to look up: - bool res = cNetwork::IPToHostName(ip, std::make_shared<cLuaNameLookup>(ip, std::move(callbacks))); + bool res = cNetwork::IPToHostName(ip, std::make_unique<cLuaNameLookup>(ip, std::move(callbacks))); S.Push(res); return 1; } |