diff options
author | fanquake <fanquake@gmail.com> | 2022-05-11 16:02:15 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-05-17 17:18:58 +0100 |
commit | 7aa40f55636be565441a9e0af8de0a346bfa4da2 (patch) | |
tree | cec851bcb9c00ea0d37da6b96cc5c65f2366862a /src/support/lockedpool.cpp | |
parent | d5d40d59f8d12cf53c5ad1ce9710f3f108cec386 (diff) |
refactor: use C++11 default initializers
Diffstat (limited to 'src/support/lockedpool.cpp')
-rw-r--r-- | src/support/lockedpool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/support/lockedpool.cpp b/src/support/lockedpool.cpp index ea1a27c6f6..6907749c6d 100644 --- a/src/support/lockedpool.cpp +++ b/src/support/lockedpool.cpp @@ -282,9 +282,8 @@ LockedPool::LockedPool(std::unique_ptr<LockedPageAllocator> allocator_in, Lockin { } -LockedPool::~LockedPool() -{ -} +LockedPool::~LockedPool() = default; + void* LockedPool::alloc(size_t size) { std::lock_guard<std::mutex> lock(mutex); |