Skip to content
Snippets Groups Projects
Commit 00b743cc authored by Spiros Tsalikis's avatar Spiros Tsalikis
Browse files

vtkAtomicMutex: Define default destructor in declaration

warning: class 'vtkAtomicMutex' can be made trivially destructible by
defaulting the destructor on its first declaration [performance-trivially-destructible]
parent f19de954
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,6 @@ vtkAtomicMutex::vtkAtomicMutex()
{
}
//------------------------------------------------------------------------------
vtkAtomicMutex::~vtkAtomicMutex() = default;
//------------------------------------------------------------------------------
vtkAtomicMutex::vtkAtomicMutex(const vtkAtomicMutex& other)
: Locked(other.Locked.load(std::memory_order_acquire))
......
......@@ -35,7 +35,7 @@ class VTKCOMMONCORE_EXPORT vtkAtomicMutex
public:
// left public purposely to allow for copy construction
vtkAtomicMutex();
~vtkAtomicMutex();
~vtkAtomicMutex() = default;
vtkAtomicMutex(const vtkAtomicMutex& other);
vtkAtomicMutex& operator=(const vtkAtomicMutex& other);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment