Rename initialize for client/server/parent

This commit is contained in:
TuxSH 2018-11-05 12:01:05 +01:00 committed by Michael Scire
parent 9318ab10b2
commit a035be66bd
3 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ class IClient {
}
protected:
void Initialize(SharedPtr<Parent> parent)
void SetParent(SharedPtr<Parent> parent)
{
this->parent = std::move(parent);
}

View file

@ -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{};

View file

@ -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;