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/OSSupport/Network.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/OSSupport/Network.h') diff --git a/src/OSSupport/Network.h b/src/OSSupport/Network.h index 78c5e92f0..babf0c078 100644 --- a/src/OSSupport/Network.h +++ b/src/OSSupport/Network.h @@ -15,15 +15,15 @@ // fwd: class cTCPLink; -typedef SharedPtr cTCPLinkPtr; +typedef std::shared_ptr cTCPLinkPtr; typedef std::vector cTCPLinkPtrs; class cServerHandle; -typedef SharedPtr cServerHandlePtr; +typedef std::shared_ptr cServerHandlePtr; typedef std::vector cServerHandlePtrs; class cCryptoKey; -typedef SharedPtr cCryptoKeyPtr; +typedef std::shared_ptr cCryptoKeyPtr; class cX509Cert; -typedef SharedPtr cX509CertPtr; +typedef std::shared_ptr cX509CertPtr; @@ -61,7 +61,7 @@ public: /** Called when an error is detected on the connection. */ virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) = 0; }; - typedef SharedPtr cCallbacksPtr; + typedef std::shared_ptr cCallbacksPtr; // Force a virtual destructor for all descendants: @@ -215,7 +215,7 @@ protected: } }; -typedef SharedPtr cUDPEndpointPtr; +typedef std::shared_ptr cUDPEndpointPtr; @@ -238,7 +238,7 @@ public: /** Called when the Connect call fails. */ virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) = 0; }; - typedef SharedPtr cConnectCallbacksPtr; + typedef std::shared_ptr cConnectCallbacksPtr; /** Callbacks used when listening for incoming connections as a server. */ @@ -262,7 +262,7 @@ public: /** Called when the socket fails to listen on the specified port. */ virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) = 0; }; - typedef SharedPtr cListenCallbacksPtr; + typedef std::shared_ptr cListenCallbacksPtr; /** Callbacks used when resolving names to IPs. */ @@ -298,7 +298,7 @@ public: Only called if there was no error reported. */ virtual void OnFinished(void) = 0; }; - typedef SharedPtr cResolveNameCallbacksPtr; + typedef std::shared_ptr cResolveNameCallbacksPtr; /** Queues a TCP connection to be made to the specified host. -- cgit v1.2.3