diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-08-03 20:03:08 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-08-03 20:03:08 +0200 |
commit | 8648fa5307b1487bbb9a420cb5b8c94b4370ef50 (patch) | |
tree | 984082bca8745d3f565f3ff268e1b3221d838178 /ACE/ace | |
parent | 4e7704ac7ade6d97cc7d30bd7e2f00f38fac898c (diff) | |
download | ATCD-8648fa5307b1487bbb9a420cb5b8c94b4370ef50.tar.gz |
Doxygen changes, use nullptr instead of a c-style cast of 0
* ACE/ace/Handle_Set.cpp:
* ACE/ace/Handle_Set.inl:
Diffstat (limited to 'ACE/ace')
-rw-r--r-- | ACE/ace/Handle_Set.cpp | 1 | ||||
-rw-r--r-- | ACE/ace/Handle_Set.inl | 21 |
2 files changed, 8 insertions, 14 deletions
diff --git a/ACE/ace/Handle_Set.cpp b/ACE/ace/Handle_Set.cpp index 325512fe7c1..1ca26071fd3 100644 --- a/ACE/ace/Handle_Set.cpp +++ b/ACE/ace/Handle_Set.cpp @@ -1,4 +1,3 @@ -// Handle_Set.cpp #include "ace/Handle_Set.h" #if defined (ACE_HAS_ALLOC_HOOKS) # include "ace/Malloc_Base.h" diff --git a/ACE/ace/Handle_Set.inl b/ACE/ace/Handle_Set.inl index cd78f17e2e5..60e31a21a9c 100644 --- a/ACE/ace/Handle_Set.inl +++ b/ACE/ace/Handle_Set.inl @@ -8,7 +8,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL -// Initialize the bitmask to all 0s and reset the associated fields. +/// Initialize the bitmask to all 0s and reset the associated fields. ACE_INLINE void ACE_Handle_Set::reset () { @@ -63,8 +63,7 @@ ACE_Handle_Set::ACE_Handle_Set (const ACE_Handle_Set &rhs) } #endif /* ACE_HAS_BIG_FD_SET */ -// Returns the number of the large bit. - +/// Returns the number of the large bit. ACE_INLINE ACE_HANDLE ACE_Handle_Set::max_set () const { @@ -72,8 +71,7 @@ ACE_Handle_Set::max_set () const return this->max_handle_; } -// Checks whether handle is enabled. - +/// Checks whether handle is enabled. ACE_INLINE int ACE_Handle_Set::is_set (ACE_HANDLE handle) const { @@ -90,8 +88,7 @@ ACE_Handle_Set::is_set (ACE_HANDLE handle) const return ret; } -// Enables the handle. - +/// Enables the handle. ACE_INLINE void ACE_Handle_Set::set_bit (ACE_HANDLE handle) { @@ -122,8 +119,7 @@ ACE_Handle_Set::set_bit (ACE_HANDLE handle) } } -// Disables the handle. - +/// Disables the handle. ACE_INLINE void ACE_Handle_Set::clr_bit (ACE_HANDLE handle) { @@ -143,8 +139,7 @@ ACE_Handle_Set::clr_bit (ACE_HANDLE handle) } } -// Returns a count of the number of enabled bits. - +/// Returns a count of the number of enabled bits. ACE_INLINE int ACE_Handle_Set::num_set () const { @@ -165,7 +160,7 @@ ACE_Handle_Set::operator fd_set *() if (this->size_ > 0) return (fd_set *) &this->mask_; else - return (fd_set *) 0; + return nullptr; } /// Returns a pointer to the underlying fd_set. @@ -177,7 +172,7 @@ ACE_Handle_Set::fdset () if (this->size_ > 0) return (fd_set *) &this->mask_; else - return (fd_set *) 0; + return nullptr; } ACE_END_VERSIONED_NAMESPACE_DECL |