summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-11-09 16:47:11 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-11-09 16:47:11 +0100
commita6797833fd068f5bbf9e2a0126fcddec29a9deaa (patch)
treed1ef488abd8a8b1baa2773715a2f2873432772cf
parenta54dcc98cde480c8cc9fc1cfcda08f68e2ab4157 (diff)
downloadATCD-a6797833fd068f5bbf9e2a0126fcddec29a9deaa.tar.gz
Layout/doxygen changes
* ACE/ace/MEM_Addr.cpp: * ACE/ace/UNIX_Addr.inl:
-rw-r--r--ACE/ace/MEM_Addr.cpp20
-rw-r--r--ACE/ace/UNIX_Addr.inl1
2 files changed, 6 insertions, 15 deletions
diff --git a/ACE/ace/MEM_Addr.cpp b/ACE/ace/MEM_Addr.cpp
index 26b365df1df..4e759900abc 100644
--- a/ACE/ace/MEM_Addr.cpp
+++ b/ACE/ace/MEM_Addr.cpp
@@ -20,8 +20,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Addr)
-// Transform the current address into string format.
-
+/// Transform the current address into string format.
ACE_MEM_Addr::ACE_MEM_Addr ()
: ACE_Addr (AF_INET, sizeof (ACE_MEM_Addr))
{
@@ -41,9 +40,7 @@ ACE_MEM_Addr::ACE_MEM_Addr (const ACE_TCHAR port_number[])
: ACE_Addr (AF_INET, sizeof (ACE_MEM_Addr))
{
ACE_TRACE ("ACE_MEM_Addr::ACE_MEM_Addr");
- u_short pn = static_cast<u_short> (ACE_OS::strtoul (port_number,
- 0,
- 10));
+ u_short const pn = static_cast<u_short> (ACE_OS::strtoul (port_number, 0, 10));
this->initialize_local (pn);
}
@@ -102,20 +99,16 @@ ACE_MEM_Addr::addr_to_string (ACE_TCHAR s[],
}
// Transform the string into the current addressing format.
-
int
ACE_MEM_Addr::string_to_addr (const ACE_TCHAR s[])
{
ACE_TRACE ("ACE_MEM_Addr::string_to_addr");
- u_short pn = static_cast<u_short> (ACE_OS::strtoul (s,
- 0,
- 10));
+ u_short pn = static_cast<u_short> (ACE_OS::strtoul (s, 0, 10));
return this->set (pn);
}
-// Return the address.
-
+/// Return the address.
void *
ACE_MEM_Addr::get_addr () const
{
@@ -123,7 +116,7 @@ ACE_MEM_Addr::get_addr () const
return this->external_.get_addr ();
}
-// Set a pointer to the address.
+/// Set a pointer to the address.
void
ACE_MEM_Addr::set_addr (const void *addr, int len)
{
@@ -141,8 +134,7 @@ ACE_MEM_Addr::get_host_name (ACE_TCHAR hostname[],
return this->external_.get_host_name (hostname, len);
}
-// Return the character representation of the hostname.
-
+/// Return the character representation of the hostname.
const char *
ACE_MEM_Addr::get_host_name () const
{
diff --git a/ACE/ace/UNIX_Addr.inl b/ACE/ace/UNIX_Addr.inl
index 125ead75e32..40a57922386 100644
--- a/ACE/ace/UNIX_Addr.inl
+++ b/ACE/ace/UNIX_Addr.inl
@@ -2,7 +2,6 @@
#include "ace/OS_NS_string.h"
-
#if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL