Rename initialize for client/server/parent

This commit is contained in:
TuxSH authored and Michael Scire committed 2019-06-03 17:41:02 -07:00
1 parent 9318ab10b2
commit a035be66bd
3 files changed
+5 -5

No files matched your search

@@ -20,7 +20,7 @@ class IClient {
} }
protected: protected:
void Initialize(SharedPtr<Parent> parent) void SetParent(SharedPtr<Parent> parent)
{ {
this->parent = std::move(parent); this->parent = std::move(parent);
} }
@@ -13,11 +13,11 @@ class IClientServerParent {
using ServerType = Server; using ServerType = Server;
protected: protected:
void Initialize() void SetClientServerParent()
{ {
Parent par = (Parent *)this; Parent par = (Parent *)this;
client.Initialize(par); client.SetParent(par);
server.Initialize(par); server.SetParent(par);
} }
ClientType client{}; ClientType client{};
@@ -20,7 +20,7 @@ class IServer {
} }
protected: protected:
void Initialize(SharedPtr<Parent> parent) void SetParent(SharedPtr<Parent> parent)
{ {
this->parent = std::move(parent); this->parent = std::move(parent);
this->client = &this->parent->client; this->client = &this->parent->client;