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: protected:
void Initialize(SharedPtr<Parent> parent) void SetParent(SharedPtr<Parent> parent)
{ {
this->parent = std::move(parent); this->parent = std::move(parent);
} }

View file

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

View file

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