Create scoped_cptr to replace scoped_ptr_sfree
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / modules / sasa.cpp
index 6fec3377ab50d3c6af96232aa1c61ce0c1e13917..3e5f2543d813187a171f2b91daaa666dbfd03765 100644 (file)
@@ -71,7 +71,7 @@
 #include "gromacs/trajectoryanalysis/analysissettings.h"
 #include "gromacs/utility/exceptions.h"
 #include "gromacs/utility/futil.h"
-#include "gromacs/utility/scoped_ptr_sfree.h"
+#include "gromacs/utility/scoped_cptr.h"
 #include "gromacs/utility/smalloc.h"
 #include "gromacs/utility/stringutil.h"
 
@@ -942,7 +942,7 @@ Sasa::analyzeFrame(int frnr, const t_trxframe &fr, t_pbc *pbc,
         }
         sfree(area);
     }
-    scoped_ptr_sfree dotsGuard(surfacedots);
+    scoped_guard_sfree dotsGuard(surfacedots);
     if (retval != 0)
     {
         GMX_THROW(InternalError("nsc_dclm_pbc failed"));