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
+2 -2
View File
@@ -485,7 +485,7 @@ Clientlist::Clientlist(int ChatPort) {
}
}
Client::Client(EQStream *eqs) {
Client::Client(std::shared_ptr<EQStream> eqs) {
ClientStream = eqs;
@@ -574,7 +574,7 @@ void Clientlist::CheckForStaleConnections(Client *c) {
void Clientlist::Process() {
EQStream *eqs;
std::shared_ptr<EQStream> eqs;
while((eqs = chatsf->Pop())) {
+2 -2
View File
@@ -84,10 +84,10 @@ struct CharacterEntry {
class Client {
public:
Client(EQStream* eqs);
Client(std::shared_ptr<EQStream> eqs);
~Client();
EQStream *ClientStream;
std::shared_ptr<EQStream> ClientStream;
void AddCharacter(int CharID, const char *CharacterName, int Level);
void ClearCharacters() { Characters.clear(); }
void SendMailBoxes();