From 8f841fb70299ca330472cc298be4241d071f7a70 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Apr 2016 13:28:42 +0200 Subject: [PATCH] Changed: Better camel case syntax --- code/nel/include/nel/net/inet_address.h | 2 +- code/nel/src/net/inet_address.cpp | 2 +- code/nel/src/net/unified_network.cpp | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/code/nel/include/nel/net/inet_address.h b/code/nel/include/nel/net/inet_address.h index fa75d47f9..b7dba0614 100644 --- a/code/nel/include/nel/net/inet_address.h +++ b/code/nel/include/nel/net/inet_address.h @@ -144,7 +144,7 @@ public: bool is127001 () const; /// Returns true if this CInetAddress is a loop back address - bool CInetAddress::isloopbackIPAddress () const; + bool isLoopbackIPAddress () const; /// Creates a CInetAddress object with local host address, port=0 static CInetAddress localHost(); diff --git a/code/nel/src/net/inet_address.cpp b/code/nel/src/net/inet_address.cpp index aaa43ab29..66650d79c 100644 --- a/code/nel/src/net/inet_address.cpp +++ b/code/nel/src/net/inet_address.cpp @@ -776,7 +776,7 @@ bool CInetAddress::is127001 () const return (internalIPAddress () == htonl(0x7F000001)); } -bool CInetAddress::isloopbackIPAddress () const +bool CInetAddress::isLoopbackIPAddress () const { const char *sIPAddress = ipAddress().c_str(); diff --git a/code/nel/src/net/unified_network.cpp b/code/nel/src/net/unified_network.cpp index 1dedbb119..9ce5dc7a5 100644 --- a/code/nel/src/net/unified_network.cpp +++ b/code/nel/src/net/unified_network.cpp @@ -831,8 +831,9 @@ void CUnifiedNetwork::addService(const string &name, const vector uint j = 0; - if (!addr[i].isloopbackIPAddress ()){ // it 's loopback ip address, it s ok - + if (!addr[i].isLoopbackIPAddress()) + { + // it's loopback ip address, it's ok for (j = 0; j < laddr.size (); j++) { if (laddr[j].internalNetAddress () == addr[i].internalNetAddress ()) @@ -1789,7 +1790,7 @@ bool CUnifiedNetwork::isServiceLocal (TServiceId sid) { for (uint j = 0; j < _IdCnx[sid.get()].ExtAddress.size(); j++) { - if (_IdCnx[sid.get()].ExtAddress[j].isloopbackIPAddress ()) + if (_IdCnx[sid.get()].ExtAddress[j].isLoopbackIPAddress ()) return true; if (_IdCnx[sid.get()].ExtAddress[j].internalIPAddress () == laddr[i].internalIPAddress ())