From 46398f4671012a0d913bd7bc0c70ffdc2645f2ac Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sat, 1 Aug 2020 20:18:03 +0200 Subject: Replaced cpp14::make_unique<> with std::make_unique<>. --- src/Bindings/LuaState.cpp | 10 +++++----- src/Bindings/ManualBindings_Network.cpp | 4 ++-- src/Bindings/ManualBindings_World.cpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/Bindings') diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp index 3b9d30933..31493d4fe 100644 --- a/src/Bindings/LuaState.cpp +++ b/src/Bindings/LuaState.cpp @@ -1213,7 +1213,7 @@ bool cLuaState::GetStackValue(int a_StackPos, cCallbackPtr & a_Callback) { if (a_Callback == nullptr) { - a_Callback = cpp14::make_unique(); + a_Callback = std::make_unique(); } return a_Callback->RefStack(*this, a_StackPos); } @@ -1235,7 +1235,7 @@ bool cLuaState::GetStackValue(int a_StackPos, cOptionalCallbackPtr & a_Callback) { if (a_Callback == nullptr) { - a_Callback = cpp14::make_unique(); + a_Callback = std::make_unique(); } return a_Callback->RefStack(*this, a_StackPos); } @@ -1290,7 +1290,7 @@ bool cLuaState::GetStackValue(int a_StackPos, cStackTablePtr & a_StackTable) } // Assign the StackTable to the specified stack position: - a_StackTable = cpp14::make_unique(*this, a_StackPos); + a_StackTable = std::make_unique(*this, a_StackPos); return true; } @@ -1311,7 +1311,7 @@ bool cLuaState::GetStackValue(int a_StackPos, cTableRefPtr & a_TableRef) { if (a_TableRef == nullptr) { - a_TableRef = cpp14::make_unique(); + a_TableRef = std::make_unique(); } return a_TableRef->RefStack(*this, a_StackPos); } @@ -1333,7 +1333,7 @@ bool cLuaState::GetStackValue(int a_StackPos, cTrackedRefPtr & a_Ref) { if (a_Ref == nullptr) { - a_Ref = cpp14::make_unique(); + a_Ref = std::make_unique(); } return a_Ref->RefStack(*this, a_StackPos); } diff --git a/src/Bindings/ManualBindings_Network.cpp b/src/Bindings/ManualBindings_Network.cpp index 4a7dd2367..911e1a8bb 100644 --- a/src/Bindings/ManualBindings_Network.cpp +++ b/src/Bindings/ManualBindings_Network.cpp @@ -967,7 +967,7 @@ static int tolua_cUrlClient_Request_Common(lua_State * a_LuaState, const AString { return L.ApiParamError("Cannot read the CallbacksTable parameter at idx %d", a_UrlStackIdx + 1); } - urlClientCallbacks = cpp14::make_unique(std::move(callbacks)); + urlClientCallbacks = std::make_unique(std::move(callbacks)); } else if (lua_isfunction(L, a_UrlStackIdx + 1)) { @@ -975,7 +975,7 @@ static int tolua_cUrlClient_Request_Common(lua_State * a_LuaState, const AString { return L.ApiParamError("Cannot read the CallbackFn parameter at idx %d", a_UrlStackIdx + 1); } - urlClientCallbacks = cpp14::make_unique(std::move(onCompleteBodyCallback)); + urlClientCallbacks = std::make_unique(std::move(onCompleteBodyCallback)); } else { diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp index cfefb4f7a..8c73c5cd1 100644 --- a/src/Bindings/ManualBindings_World.cpp +++ b/src/Bindings/ManualBindings_World.cpp @@ -307,7 +307,7 @@ static int tolua_cWorld_ChunkStay(lua_State * tolua_S) ASSERT(chunkCoords != nullptr); // If the table was invalid, GetStackValues() would have failed // Read the chunk coords: - auto chunkStay = cpp14::make_unique(); + auto chunkStay = std::make_unique(); if (!chunkStay->AddChunks(*chunkCoords)) { return 0; @@ -732,7 +732,7 @@ static int tolua_cWorld_PrepareChunk(lua_State * tolua_S) cWorld * world = nullptr; int chunkX = 0; int chunkZ = 0; - auto Callback = cpp14::make_unique(); + auto Callback = std::make_unique(); L.GetStackValues(1, world, chunkX, chunkZ, Callback->m_LuaCallback); if (world == nullptr) { -- cgit v1.2.3