summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings_Network.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-05-20 20:59:46 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-26 19:57:48 +0200
commit072fdf348826db6bc75207540c55e8e275227516 (patch)
tree433cf29095b8796dd737790fa0be693b1b836613 /src/Bindings/ManualBindings_Network.cpp
parent1.14 connection support (diff)
downloadcuberite-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.cpp4
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;
}