From a56cfd1f42663856e346a26cbad401aec07bed91 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Thu, 20 Jul 2017 12:19:18 +0100 Subject: Remove smart pointer macros --- src/Bindings/LuaState.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Bindings/LuaState.h') diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index d8f39b09e..9e354392b 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -270,8 +270,8 @@ public: Use a smart pointer for a copyable object. */ cTrackedRef(cTrackedRef &&) = delete; }; - typedef UniquePtr cTrackedRefPtr; - typedef SharedPtr cTrackedRefSharedPtr; + typedef std::unique_ptr cTrackedRefPtr; + typedef std::shared_ptr cTrackedRefSharedPtr; /** Represents a stored callback to Lua that C++ code can call. @@ -324,8 +324,8 @@ public: Use cCallbackPtr for a copyable object. */ cCallback(cCallback &&) = delete; }; - typedef UniquePtr cCallbackPtr; - typedef SharedPtr cCallbackSharedPtr; + typedef std::unique_ptr cCallbackPtr; + typedef std::shared_ptr cCallbackSharedPtr; /** Same thing as cCallback, but GetStackValue() won't fail if the callback value is nil. @@ -354,7 +354,7 @@ public: Use cCallbackPtr for a copyable object. */ cOptionalCallback(cOptionalCallback &&) = delete; }; - typedef UniquePtr cOptionalCallbackPtr; + typedef std::unique_ptr cOptionalCallbackPtr; /** Represents a stored Lua table with callback functions that C++ code can call. @@ -416,7 +416,7 @@ public: Returns true on success, false on failure (not a table at the specified stack pos). */ bool RefStack(cLuaState & a_LuaState, int a_StackPos); }; - typedef UniquePtr cTableRefPtr; + typedef std::unique_ptr cTableRefPtr; /** Represents a parameter that is optional - calling a GetStackValue() with this object will not fail if the value on the Lua stack is nil. @@ -539,7 +539,7 @@ public: /** The stack index where the table resides in the Lua state. */ int m_StackPos; }; - typedef UniquePtr cStackTablePtr; + typedef std::unique_ptr cStackTablePtr; /** Creates a new instance. The LuaState is not initialized. -- cgit v1.2.3