Many tweaks to stream memory allocation, including but not limited to streams now are shared_ptrs.

This commit is contained in:
KimLS
2015-01-27 21:12:44 -08:00
parent d037bc9dcc
commit 7dbe6a7426
22 changed files with 111 additions and 111 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ public:
/**
* Constructor, sets our connection to c and version to v
*/
Client(EQStream *c, LSClientVersion v);
Client(std::shared_ptr<EQStream> c, LSClientVersion v);
/**
* Destructor.
@@ -129,11 +129,11 @@ public:
/**
* Gets the connection for this client.
*/
EQStream *GetConnection() { return connection; }
std::shared_ptr<EQStream> GetConnection() { return connection; }
EQEmu::Random random;
private:
EQStream *connection;
std::shared_ptr<EQStream> connection;
LSClientVersion version;
LSClientStatus status;