put back some spaces

pull/1/head
Tom Early 5 years ago
parent c2c1277623
commit 2af8c7225a

@ -49,7 +49,7 @@ CClients::~CClients()
////////////////////////////////////////////////////////////////////////////////////////
// manage Clients
void CClients::AddClient(std::shared_ptr<CClient>client)
void CClients::AddClient(std::shared_ptr<CClient> client)
{
// first check if client already exists
for ( auto it=begin(); it!=end(); it++ )
@ -77,7 +77,7 @@ void CClients::AddClient(std::shared_ptr<CClient>client)
g_Reflector.OnClientsChanged();
}
void CClients::RemoveClient(std::shared_ptr<CClient>client)
void CClients::RemoveClient(std::shared_ptr<CClient> client)
{
// look for the client
bool found = false;
@ -105,7 +105,7 @@ void CClients::RemoveClient(std::shared_ptr<CClient>client)
}
}
bool CClients::IsClient(std::shared_ptr<CClient>client) const
bool CClients::IsClient(std::shared_ptr<CClient> client) const
{
for ( auto it=cbegin(); it!=cend(); it++ )
{
@ -118,7 +118,7 @@ bool CClients::IsClient(std::shared_ptr<CClient>client) const
////////////////////////////////////////////////////////////////////////////////////////
// find Clients
std::shared_ptr<CClient>CClients::FindClient(const CIp &Ip)
std::shared_ptr<CClient> CClients::FindClient(const CIp &Ip)
{
// find client
for ( auto it=begin(); it!=end(); it++ )
@ -133,7 +133,7 @@ std::shared_ptr<CClient>CClients::FindClient(const CIp &Ip)
return nullptr;
}
std::shared_ptr<CClient>CClients::FindClient(const CIp &Ip, int Protocol)
std::shared_ptr<CClient> CClients::FindClient(const CIp &Ip, int Protocol)
{
// find client
for ( auto it=begin(); it!=end(); it++ )
@ -148,7 +148,7 @@ std::shared_ptr<CClient>CClients::FindClient(const CIp &Ip, int Protocol)
return nullptr;
}
std::shared_ptr<CClient>CClients::FindClient(const CIp &Ip, int Protocol, char ReflectorModule)
std::shared_ptr<CClient> CClients::FindClient(const CIp &Ip, int Protocol, char ReflectorModule)
{
// find client
for ( auto it=begin(); it!=end(); it++ )
@ -165,7 +165,7 @@ std::shared_ptr<CClient>CClients::FindClient(const CIp &Ip, int Protocol, char R
return nullptr;
}
std::shared_ptr<CClient>CClients::FindClient(const CCallsign &Callsign, const CIp &Ip, int Protocol)
std::shared_ptr<CClient> CClients::FindClient(const CCallsign &Callsign, const CIp &Ip, int Protocol)
{
// find client
for ( auto it=begin(); it!=end(); it++ )
@ -181,7 +181,7 @@ std::shared_ptr<CClient>CClients::FindClient(const CCallsign &Callsign, const CI
return nullptr;
}
std::shared_ptr<CClient>CClients::FindClient(const CCallsign &Callsign, char module, const CIp &Ip, int Protocol)
std::shared_ptr<CClient> CClients::FindClient(const CCallsign &Callsign, char module, const CIp &Ip, int Protocol)
{
// find client
for ( auto it=begin(); it!=end(); it++ )
@ -198,7 +198,7 @@ std::shared_ptr<CClient>CClients::FindClient(const CCallsign &Callsign, char mod
return nullptr;
}
std::shared_ptr<CClient>CClients::FindClient(const CCallsign &Callsign, int Protocol)
std::shared_ptr<CClient> CClients::FindClient(const CCallsign &Callsign, int Protocol)
{
// find client
for ( auto it=begin(); it!=end(); it++ )
@ -216,7 +216,7 @@ std::shared_ptr<CClient>CClients::FindClient(const CCallsign &Callsign, int Prot
////////////////////////////////////////////////////////////////////////////////////////
// iterate on clients
std::shared_ptr<CClient>CClients::FindNextClient(int Protocol, std::list<std::shared_ptr<CClient>>::iterator &it)
std::shared_ptr<CClient> CClients::FindNextClient(int Protocol, std::list<std::shared_ptr<CClient>>::iterator &it)
{
while ( it != end() )
{
@ -229,7 +229,7 @@ std::shared_ptr<CClient>CClients::FindNextClient(int Protocol, std::list<std::sh
return nullptr;
}
std::shared_ptr<CClient>CClients::FindNextClient(const CIp &Ip, int Protocol, std::list<std::shared_ptr<CClient>>::iterator &it)
std::shared_ptr<CClient> CClients::FindNextClient(const CIp &Ip, int Protocol, std::list<std::shared_ptr<CClient>>::iterator &it)
{
while ( it != end() )
{
@ -243,7 +243,7 @@ std::shared_ptr<CClient>CClients::FindNextClient(const CIp &Ip, int Protocol, st
return nullptr;
}
std::shared_ptr<CClient>CClients::FindNextClient(const CCallsign &Callsign, const CIp &Ip, int Protocol, std::list<std::shared_ptr<CClient>>::iterator &it)
std::shared_ptr<CClient> CClients::FindNextClient(const CCallsign &Callsign, const CIp &Ip, int Protocol, std::list<std::shared_ptr<CClient>>::iterator &it)
{
while ( it != end() )
{

@ -62,17 +62,17 @@ public:
std::list<std::shared_ptr<CClient>>::const_iterator cend() const { return m_Clients.cend(); }
// find clients
std::shared_ptr<CClient>FindClient(const CIp &);
std::shared_ptr<CClient>FindClient(const CIp &, int);
std::shared_ptr<CClient>FindClient(const CIp &, int, char);
std::shared_ptr<CClient>FindClient(const CCallsign &, const CIp &, int);
std::shared_ptr<CClient>FindClient(const CCallsign &, char, const CIp &, int);
std::shared_ptr<CClient>FindClient(const CCallsign &, int);
std::shared_ptr<CClient> FindClient(const CIp &);
std::shared_ptr<CClient> FindClient(const CIp &, int);
std::shared_ptr<CClient> FindClient(const CIp &, int, char);
std::shared_ptr<CClient> FindClient(const CCallsign &, const CIp &, int);
std::shared_ptr<CClient> FindClient(const CCallsign &, char, const CIp &, int);
std::shared_ptr<CClient> FindClient(const CCallsign &, int);
// iterate on clients
std::shared_ptr<CClient>FindNextClient(int, std::list<std::shared_ptr<CClient>>::iterator &);
std::shared_ptr<CClient>FindNextClient(const CIp &, int, std::list<std::shared_ptr<CClient>>::iterator &);
std::shared_ptr<CClient>FindNextClient(const CCallsign &, const CIp &, int, std::list<std::shared_ptr<CClient>>::iterator &);
std::shared_ptr<CClient> FindNextClient(int, std::list<std::shared_ptr<CClient>>::iterator &);
std::shared_ptr<CClient> FindNextClient(const CIp &, int, std::list<std::shared_ptr<CClient>>::iterator &);
std::shared_ptr<CClient> FindNextClient(const CCallsign &, const CIp &, int, std::list<std::shared_ptr<CClient>>::iterator &);
protected:
// data

@ -47,7 +47,7 @@ CPeers::~CPeers()
////////////////////////////////////////////////////////////////////////////////////////
// manage peers
void CPeers::AddPeer(std::shared_ptr<CPeer>peer)
void CPeers::AddPeer(std::shared_ptr<CPeer> peer)
{
// first check if peer already exists
for ( auto it=begin(); it!=end(); it++ )
@ -79,7 +79,7 @@ void CPeers::AddPeer(std::shared_ptr<CPeer>peer)
g_Reflector.OnPeersChanged();
}
void CPeers::RemovePeer(std::shared_ptr<CPeer>peer)
void CPeers::RemovePeer(std::shared_ptr<CPeer> peer)
{
// look for the client
for ( auto pit=begin(); pit!=end(); /*increment done in body */ )
@ -115,7 +115,7 @@ void CPeers::RemovePeer(std::shared_ptr<CPeer>peer)
////////////////////////////////////////////////////////////////////////////////////////
// find peers
std::shared_ptr<CPeer>CPeers::FindPeer(const CIp &Ip, int Protocol)
std::shared_ptr<CPeer> CPeers::FindPeer(const CIp &Ip, int Protocol)
{
for ( auto it=begin(); it!=end(); it++ )
{
@ -128,7 +128,7 @@ std::shared_ptr<CPeer>CPeers::FindPeer(const CIp &Ip, int Protocol)
return nullptr;
}
std::shared_ptr<CPeer>CPeers::FindPeer(const CCallsign &Callsign, const CIp &Ip, int Protocol)
std::shared_ptr<CPeer> CPeers::FindPeer(const CCallsign &Callsign, const CIp &Ip, int Protocol)
{
for ( auto it=begin(); it!=end(); it++ )
{
@ -143,7 +143,7 @@ std::shared_ptr<CPeer>CPeers::FindPeer(const CCallsign &Callsign, const CIp &Ip,
return nullptr;
}
std::shared_ptr<CPeer>CPeers::FindPeer(const CCallsign &Callsign, int Protocol)
std::shared_ptr<CPeer> CPeers::FindPeer(const CCallsign &Callsign, int Protocol)
{
for ( auto it=begin(); it!=end(); it++ )
{
@ -161,7 +161,7 @@ std::shared_ptr<CPeer>CPeers::FindPeer(const CCallsign &Callsign, int Protocol)
////////////////////////////////////////////////////////////////////////////////////////
// iterate on peers
std::shared_ptr<CPeer>CPeers::FindNextPeer(int Protocol, std::list<std::shared_ptr<CPeer>>::iterator &it)
std::shared_ptr<CPeer> CPeers::FindNextPeer(int Protocol, std::list<std::shared_ptr<CPeer>>::iterator &it)
{
while ( it!=end() )
{

@ -61,12 +61,12 @@ public:
std::list<std::shared_ptr<CPeer>>::const_iterator cend() const { return m_Peers.cend(); }
// find peers
std::shared_ptr<CPeer>FindPeer(const CIp &, int);
std::shared_ptr<CPeer>FindPeer(const CCallsign &, const CIp &, int);
std::shared_ptr<CPeer>FindPeer(const CCallsign &, int);
std::shared_ptr<CPeer> FindPeer(const CIp &, int);
std::shared_ptr<CPeer> FindPeer(const CCallsign &, const CIp &, int);
std::shared_ptr<CPeer> FindPeer(const CCallsign &, int);
// iterate on peers
std::shared_ptr<CPeer>FindNextPeer(int, std::list<std::shared_ptr<CPeer>>::iterator &);
std::shared_ptr<CPeer> FindNextPeer(int, std::list<std::shared_ptr<CPeer>>::iterator &);
protected:
// data

Loading…
Cancel
Save

Powered by TurnKey Linux.