Replace scoped_cptr with unique_cptr
[alexxy/gromacs.git] / src / gromacs / mdrunutility / threadaffinity.cpp
index d30e078a74833d64e9e8a0a5b1ace8ab0f8857a1..83bee6730c0ca72d8343c327e23506d13786a685 100644 (file)
@@ -60,8 +60,8 @@
 #include "gromacs/utility/gmxomp.h"
 #include "gromacs/utility/logger.h"
 #include "gromacs/utility/programcontext.h"
-#include "gromacs/utility/scoped_cptr.h"
 #include "gromacs/utility/smalloc.h"
+#include "gromacs/utility/unique_cptr.h"
 
 namespace
 {
@@ -425,7 +425,7 @@ gmx_set_thread_affinity(FILE                        *fplog,
     bool validLayout
         = get_thread_affinity_layout(fplog, mdlog, cr, hwTop, nthread_node, automatic,
                                      offset, &core_pinning_stride, &localityOrder);
-    gmx::scoped_guard_sfree localityOrderGuard(localityOrder);
+    const gmx::sfree_guard  localityOrderGuard(localityOrder);
 
     bool                    allAffinitiesSet;
     if (validLayout)