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