Skip to content

Commit

Permalink
Apply style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 20, 2023
1 parent 3229bc5 commit 26f3adf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/umpire/Allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ Allocator::Allocator(strategy::AllocationStrategy* allocator) noexcept
//
if (dynamic_cast<umpire::strategy::ThreadSafeAllocator*>(allocator) != nullptr) {
m_mutex = new std::mutex; // Management of pointer TBD
}
else {
} else {
m_mutex = nullptr;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/umpire/Allocator.inl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ inline void* Allocator::allocate(const std::string& name, std::size_t bytes)

if (m_mutex != nullptr)
m_mutex->lock();

if (0 == bytes) {
ret = allocateNull();
} else {
Expand Down

0 comments on commit 26f3adf

Please sign in to comment.