From 2af8c7225afe163718753aa497200efd6001d775 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Thu, 23 Jul 2020 16:12:42 -0700 Subject: [PATCH] put back some spaces --- src/cclients.cpp | 24 ++++++++++++------------ src/cclients.h | 18 +++++++++--------- src/cpeers.cpp | 12 ++++++------ src/cpeers.h | 8 ++++---- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/cclients.cpp b/src/cclients.cpp index ebbefdd..b14b4f1 100644 --- a/src/cclients.cpp +++ b/src/cclients.cpp @@ -49,7 +49,7 @@ CClients::~CClients() //////////////////////////////////////////////////////////////////////////////////////// // manage Clients -void CClients::AddClient(std::shared_ptrclient) +void CClients::AddClient(std::shared_ptr client) { // first check if client already exists for ( auto it=begin(); it!=end(); it++ ) @@ -77,7 +77,7 @@ void CClients::AddClient(std::shared_ptrclient) g_Reflector.OnClientsChanged(); } -void CClients::RemoveClient(std::shared_ptrclient) +void CClients::RemoveClient(std::shared_ptr client) { // look for the client bool found = false; @@ -105,7 +105,7 @@ void CClients::RemoveClient(std::shared_ptrclient) } } -bool CClients::IsClient(std::shared_ptrclient) const +bool CClients::IsClient(std::shared_ptr client) const { for ( auto it=cbegin(); it!=cend(); it++ ) { @@ -118,7 +118,7 @@ bool CClients::IsClient(std::shared_ptrclient) const //////////////////////////////////////////////////////////////////////////////////////// // find Clients -std::shared_ptrCClients::FindClient(const CIp &Ip) +std::shared_ptr CClients::FindClient(const CIp &Ip) { // find client for ( auto it=begin(); it!=end(); it++ ) @@ -133,7 +133,7 @@ std::shared_ptrCClients::FindClient(const CIp &Ip) return nullptr; } -std::shared_ptrCClients::FindClient(const CIp &Ip, int Protocol) +std::shared_ptr CClients::FindClient(const CIp &Ip, int Protocol) { // find client for ( auto it=begin(); it!=end(); it++ ) @@ -148,7 +148,7 @@ std::shared_ptrCClients::FindClient(const CIp &Ip, int Protocol) return nullptr; } -std::shared_ptrCClients::FindClient(const CIp &Ip, int Protocol, char ReflectorModule) +std::shared_ptr CClients::FindClient(const CIp &Ip, int Protocol, char ReflectorModule) { // find client for ( auto it=begin(); it!=end(); it++ ) @@ -165,7 +165,7 @@ std::shared_ptrCClients::FindClient(const CIp &Ip, int Protocol, char R return nullptr; } -std::shared_ptrCClients::FindClient(const CCallsign &Callsign, const CIp &Ip, int Protocol) +std::shared_ptr 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_ptrCClients::FindClient(const CCallsign &Callsign, const CI return nullptr; } -std::shared_ptrCClients::FindClient(const CCallsign &Callsign, char module, const CIp &Ip, int Protocol) +std::shared_ptr 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_ptrCClients::FindClient(const CCallsign &Callsign, char mod return nullptr; } -std::shared_ptrCClients::FindClient(const CCallsign &Callsign, int Protocol) +std::shared_ptr CClients::FindClient(const CCallsign &Callsign, int Protocol) { // find client for ( auto it=begin(); it!=end(); it++ ) @@ -216,7 +216,7 @@ std::shared_ptrCClients::FindClient(const CCallsign &Callsign, int Prot //////////////////////////////////////////////////////////////////////////////////////// // iterate on clients -std::shared_ptrCClients::FindNextClient(int Protocol, std::list>::iterator &it) +std::shared_ptr CClients::FindNextClient(int Protocol, std::list>::iterator &it) { while ( it != end() ) { @@ -229,7 +229,7 @@ std::shared_ptrCClients::FindNextClient(int Protocol, std::listCClients::FindNextClient(const CIp &Ip, int Protocol, std::list>::iterator &it) +std::shared_ptr CClients::FindNextClient(const CIp &Ip, int Protocol, std::list>::iterator &it) { while ( it != end() ) { @@ -243,7 +243,7 @@ std::shared_ptrCClients::FindNextClient(const CIp &Ip, int Protocol, st return nullptr; } -std::shared_ptrCClients::FindNextClient(const CCallsign &Callsign, const CIp &Ip, int Protocol, std::list>::iterator &it) +std::shared_ptr CClients::FindNextClient(const CCallsign &Callsign, const CIp &Ip, int Protocol, std::list>::iterator &it) { while ( it != end() ) { diff --git a/src/cclients.h b/src/cclients.h index 37c5ab3..37bcf5f 100644 --- a/src/cclients.h +++ b/src/cclients.h @@ -62,17 +62,17 @@ public: std::list>::const_iterator cend() const { return m_Clients.cend(); } // find clients - std::shared_ptrFindClient(const CIp &); - std::shared_ptrFindClient(const CIp &, int); - std::shared_ptrFindClient(const CIp &, int, char); - std::shared_ptrFindClient(const CCallsign &, const CIp &, int); - std::shared_ptrFindClient(const CCallsign &, char, const CIp &, int); - std::shared_ptrFindClient(const CCallsign &, int); + std::shared_ptr FindClient(const CIp &); + std::shared_ptr FindClient(const CIp &, int); + std::shared_ptr FindClient(const CIp &, int, char); + std::shared_ptr FindClient(const CCallsign &, const CIp &, int); + std::shared_ptr FindClient(const CCallsign &, char, const CIp &, int); + std::shared_ptr FindClient(const CCallsign &, int); // iterate on clients - std::shared_ptrFindNextClient(int, std::list>::iterator &); - std::shared_ptrFindNextClient(const CIp &, int, std::list>::iterator &); - std::shared_ptrFindNextClient(const CCallsign &, const CIp &, int, std::list>::iterator &); + std::shared_ptr FindNextClient(int, std::list>::iterator &); + std::shared_ptr FindNextClient(const CIp &, int, std::list>::iterator &); + std::shared_ptr FindNextClient(const CCallsign &, const CIp &, int, std::list>::iterator &); protected: // data diff --git a/src/cpeers.cpp b/src/cpeers.cpp index cfbd4ec..7e7c045 100644 --- a/src/cpeers.cpp +++ b/src/cpeers.cpp @@ -47,7 +47,7 @@ CPeers::~CPeers() //////////////////////////////////////////////////////////////////////////////////////// // manage peers -void CPeers::AddPeer(std::shared_ptrpeer) +void CPeers::AddPeer(std::shared_ptr peer) { // first check if peer already exists for ( auto it=begin(); it!=end(); it++ ) @@ -79,7 +79,7 @@ void CPeers::AddPeer(std::shared_ptrpeer) g_Reflector.OnPeersChanged(); } -void CPeers::RemovePeer(std::shared_ptrpeer) +void CPeers::RemovePeer(std::shared_ptr peer) { // look for the client for ( auto pit=begin(); pit!=end(); /*increment done in body */ ) @@ -115,7 +115,7 @@ void CPeers::RemovePeer(std::shared_ptrpeer) //////////////////////////////////////////////////////////////////////////////////////// // find peers -std::shared_ptrCPeers::FindPeer(const CIp &Ip, int Protocol) +std::shared_ptr CPeers::FindPeer(const CIp &Ip, int Protocol) { for ( auto it=begin(); it!=end(); it++ ) { @@ -128,7 +128,7 @@ std::shared_ptrCPeers::FindPeer(const CIp &Ip, int Protocol) return nullptr; } -std::shared_ptrCPeers::FindPeer(const CCallsign &Callsign, const CIp &Ip, int Protocol) +std::shared_ptr CPeers::FindPeer(const CCallsign &Callsign, const CIp &Ip, int Protocol) { for ( auto it=begin(); it!=end(); it++ ) { @@ -143,7 +143,7 @@ std::shared_ptrCPeers::FindPeer(const CCallsign &Callsign, const CIp &Ip, return nullptr; } -std::shared_ptrCPeers::FindPeer(const CCallsign &Callsign, int Protocol) +std::shared_ptr CPeers::FindPeer(const CCallsign &Callsign, int Protocol) { for ( auto it=begin(); it!=end(); it++ ) { @@ -161,7 +161,7 @@ std::shared_ptrCPeers::FindPeer(const CCallsign &Callsign, int Protocol) //////////////////////////////////////////////////////////////////////////////////////// // iterate on peers -std::shared_ptrCPeers::FindNextPeer(int Protocol, std::list>::iterator &it) +std::shared_ptr CPeers::FindNextPeer(int Protocol, std::list>::iterator &it) { while ( it!=end() ) { diff --git a/src/cpeers.h b/src/cpeers.h index 8dfe644..9d54423 100644 --- a/src/cpeers.h +++ b/src/cpeers.h @@ -61,12 +61,12 @@ public: std::list>::const_iterator cend() const { return m_Peers.cend(); } // find peers - std::shared_ptrFindPeer(const CIp &, int); - std::shared_ptrFindPeer(const CCallsign &, const CIp &, int); - std::shared_ptrFindPeer(const CCallsign &, int); + std::shared_ptr FindPeer(const CIp &, int); + std::shared_ptr FindPeer(const CCallsign &, const CIp &, int); + std::shared_ptr FindPeer(const CCallsign &, int); // iterate on peers - std::shared_ptrFindNextPeer(int, std::list>::iterator &); + std::shared_ptr FindNextPeer(int, std::list>::iterator &); protected: // data