Enable clang tidy/warnings for tests
[alexxy/gromacs.git] / src / gromacs / mdrunutility / tests / threadaffinitytest.cpp
index 4e9524c4112b07e9cd204b544aea20b825b483aa..3510be85c04d59ef8d6fc047830f205351fb4d75 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <gmock/gmock.h>
 
+#include "gromacs/compat/make_unique.h"
 #include "gromacs/hardware/hardwaretopology.h"
 #include "gromacs/mdtypes/commrec.h"
 #include "gromacs/utility/basenetwork.h"
@@ -86,7 +87,7 @@ ThreadAffinityTestHelper::~ThreadAffinityTestHelper()
 
 void ThreadAffinityTestHelper::setLogicalProcessorCount(int logicalProcessorCount)
 {
-    hwTop_.reset(new HardwareTopology(logicalProcessorCount));
+    hwTop_ = gmx::compat::make_unique<HardwareTopology>(logicalProcessorCount);
 }
 
 } // namespace test