diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-07 16:47:37 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-07 16:47:37 +0100 |
commit | 7d210e952de2ccfd2ac758dbacd7b752da8769e9 (patch) | |
tree | 0e970def70c96a3c19d5f0d37cd17d678f70c9a0 /TAO/tao/MMAP_Allocator.cpp | |
parent | 884dcea8b196f72cb995de9f46d61a6ee6521222 (diff) | |
download | ATCD-7d210e952de2ccfd2ac758dbacd7b752da8769e9.tar.gz |
Removed redundant void, use nullptr/override in the TAO core
Diffstat (limited to 'TAO/tao/MMAP_Allocator.cpp')
-rw-r--r-- | TAO/tao/MMAP_Allocator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/MMAP_Allocator.cpp b/TAO/tao/MMAP_Allocator.cpp index aca4124f7b1..04453f7cd8d 100644 --- a/TAO/tao/MMAP_Allocator.cpp +++ b/TAO/tao/MMAP_Allocator.cpp @@ -54,20 +54,20 @@ namespace // read(2)) for the open()ed /dev/zero device. Reading through the // /dev/zero file descriptor simply returns zero, as /dev/zero was // designed to do. So unfortunate. :) -TAO_MMAP_Allocator::TAO_MMAP_Allocator (void) - : TAO_MMAP_Allocator_Base ((char const *) 0 /* pool name */, - 0, // No need to explicitly name the lock. +TAO_MMAP_Allocator::TAO_MMAP_Allocator () + : TAO_MMAP_Allocator_Base ((char const *) nullptr /* pool name */, + nullptr, // No need to explicitly name the lock. &the_pool_options) { } -TAO_MMAP_Allocator::~TAO_MMAP_Allocator (void) +TAO_MMAP_Allocator::~TAO_MMAP_Allocator () { } // @@ Should be const but underlying allocator methods are not! ACE_HANDLE -TAO_MMAP_Allocator::handle (void) +TAO_MMAP_Allocator::handle () { return this->alloc ().memory_pool ().mmap ().handle (); } |