diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-07-20 13:19:18 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2017-07-21 15:41:51 +0200 |
commit | a56cfd1f42663856e346a26cbad401aec07bed91 (patch) | |
tree | 2bbdef2d6d09e8625ceaddba443b3a97b2febb5e /src/OSSupport | |
parent | FastRandom: Remove discrepancy between arg and return value type. (#3846) (diff) | |
download | cuberite-a56cfd1f42663856e346a26cbad401aec07bed91.tar cuberite-a56cfd1f42663856e346a26cbad401aec07bed91.tar.gz cuberite-a56cfd1f42663856e346a26cbad401aec07bed91.tar.bz2 cuberite-a56cfd1f42663856e346a26cbad401aec07bed91.tar.lz cuberite-a56cfd1f42663856e346a26cbad401aec07bed91.tar.xz cuberite-a56cfd1f42663856e346a26cbad401aec07bed91.tar.zst cuberite-a56cfd1f42663856e346a26cbad401aec07bed91.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/HostnameLookup.h | 2 | ||||
-rw-r--r-- | src/OSSupport/IPLookup.h | 2 | ||||
-rw-r--r-- | src/OSSupport/Network.h | 18 | ||||
-rw-r--r-- | src/OSSupport/NetworkSingleton.h | 4 | ||||
-rw-r--r-- | src/OSSupport/ServerHandleImpl.h | 4 | ||||
-rw-r--r-- | src/OSSupport/TCPLinkImpl.h | 8 | ||||
-rw-r--r-- | src/OSSupport/UDPEndpointImpl.h | 2 |
7 files changed, 20 insertions, 20 deletions
diff --git a/src/OSSupport/HostnameLookup.h b/src/OSSupport/HostnameLookup.h index 559dfad5f..9189ef021 100644 --- a/src/OSSupport/HostnameLookup.h +++ b/src/OSSupport/HostnameLookup.h @@ -37,7 +37,7 @@ protected: void Callback(int a_ErrCode, struct addrinfo * a_Addr); }; -typedef SharedPtr<cHostnameLookup> cHostnameLookupPtr; +typedef std::shared_ptr<cHostnameLookup> cHostnameLookupPtr; typedef std::vector<cHostnameLookupPtr> cHostnameLookupPtrs; diff --git a/src/OSSupport/IPLookup.h b/src/OSSupport/IPLookup.h index 600ce0af2..4e3065f1c 100644 --- a/src/OSSupport/IPLookup.h +++ b/src/OSSupport/IPLookup.h @@ -39,7 +39,7 @@ protected: /** Callback that is called by LibEvent when there's an event for the request. */ void Callback(int a_Result, const char * a_Address); }; -typedef SharedPtr<cIPLookup> cIPLookupPtr; +typedef std::shared_ptr<cIPLookup> cIPLookupPtr; typedef std::vector<cIPLookupPtr> cIPLookupPtrs; 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<cTCPLink> cTCPLinkPtr; +typedef std::shared_ptr<cTCPLink> cTCPLinkPtr; typedef std::vector<cTCPLinkPtr> cTCPLinkPtrs; class cServerHandle; -typedef SharedPtr<cServerHandle> cServerHandlePtr; +typedef std::shared_ptr<cServerHandle> cServerHandlePtr; typedef std::vector<cServerHandlePtr> cServerHandlePtrs; class cCryptoKey; -typedef SharedPtr<cCryptoKey> cCryptoKeyPtr; +typedef std::shared_ptr<cCryptoKey> cCryptoKeyPtr; class cX509Cert; -typedef SharedPtr<cX509Cert> cX509CertPtr; +typedef std::shared_ptr<cX509Cert> 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<cCallbacks> cCallbacksPtr; + typedef std::shared_ptr<cCallbacks> cCallbacksPtr; // Force a virtual destructor for all descendants: @@ -215,7 +215,7 @@ protected: } }; -typedef SharedPtr<cUDPEndpoint> cUDPEndpointPtr; +typedef std::shared_ptr<cUDPEndpoint> 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<cConnectCallbacks> cConnectCallbacksPtr; + typedef std::shared_ptr<cConnectCallbacks> 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<cListenCallbacks> cListenCallbacksPtr; + typedef std::shared_ptr<cListenCallbacks> 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<cResolveNameCallbacks> cResolveNameCallbacksPtr; + typedef std::shared_ptr<cResolveNameCallbacks> cResolveNameCallbacksPtr; /** Queues a TCP connection to be made to the specified host. diff --git a/src/OSSupport/NetworkSingleton.h b/src/OSSupport/NetworkSingleton.h index 59ec713c4..7da3f7569 100644 --- a/src/OSSupport/NetworkSingleton.h +++ b/src/OSSupport/NetworkSingleton.h @@ -27,10 +27,10 @@ // fwd: struct event_base; class cTCPLinkImpl; -typedef SharedPtr<cTCPLinkImpl> cTCPLinkImplPtr; +typedef std::shared_ptr<cTCPLinkImpl> cTCPLinkImplPtr; typedef std::vector<cTCPLinkImplPtr> cTCPLinkImplPtrs; class cServerHandleImpl; -typedef SharedPtr<cServerHandleImpl> cServerHandleImplPtr; +typedef std::shared_ptr<cServerHandleImpl> cServerHandleImplPtr; typedef std::vector<cServerHandleImplPtr> cServerHandleImplPtrs; diff --git a/src/OSSupport/ServerHandleImpl.h b/src/OSSupport/ServerHandleImpl.h index 8a22df18b..1edd59dc1 100644 --- a/src/OSSupport/ServerHandleImpl.h +++ b/src/OSSupport/ServerHandleImpl.h @@ -21,10 +21,10 @@ // fwd: class cTCPLinkImpl; -typedef SharedPtr<cTCPLinkImpl> cTCPLinkImplPtr; +typedef std::shared_ptr<cTCPLinkImpl> cTCPLinkImplPtr; typedef std::vector<cTCPLinkImplPtr> cTCPLinkImplPtrs; class cServerHandleImpl; -typedef SharedPtr<cServerHandleImpl> cServerHandleImplPtr; +typedef std::shared_ptr<cServerHandleImpl> cServerHandleImplPtr; typedef std::vector<cServerHandleImplPtr> cServerHandleImplPtrs; diff --git a/src/OSSupport/TCPLinkImpl.h b/src/OSSupport/TCPLinkImpl.h index d582e2f8d..0437353fb 100644 --- a/src/OSSupport/TCPLinkImpl.h +++ b/src/OSSupport/TCPLinkImpl.h @@ -22,9 +22,9 @@ // fwd: class cServerHandleImpl; -typedef SharedPtr<cServerHandleImpl> cServerHandleImplPtr; +typedef std::shared_ptr<cServerHandleImpl> cServerHandleImplPtr; class cTCPLinkImpl; -typedef SharedPtr<cTCPLinkImpl> cTCPLinkImplPtr; +typedef std::shared_ptr<cTCPLinkImpl> cTCPLinkImplPtr; typedef std::vector<cTCPLinkImplPtr> cTCPLinkImplPtrs; @@ -79,8 +79,8 @@ protected: // fwd: class cLinkTlsContext; - typedef SharedPtr<cLinkTlsContext> cLinkTlsContextPtr; - typedef WeakPtr<cLinkTlsContext> cLinkTlsContextWPtr; + typedef std::shared_ptr<cLinkTlsContext> cLinkTlsContextPtr; + typedef std::weak_ptr<cLinkTlsContext> cLinkTlsContextWPtr; /** Wrapper around cSslContext that is used when this link is being encrypted by SSL. */ class cLinkTlsContext : diff --git a/src/OSSupport/UDPEndpointImpl.h b/src/OSSupport/UDPEndpointImpl.h index 56116df17..a6ca37c27 100644 --- a/src/OSSupport/UDPEndpointImpl.h +++ b/src/OSSupport/UDPEndpointImpl.h @@ -18,7 +18,7 @@ // fwd: class cUDPEndpointImpl; -typedef SharedPtr<cUDPEndpointImpl> cUDPEndpointImplPtr; +typedef std::shared_ptr<cUDPEndpointImpl> cUDPEndpointImplPtr; |