#include "gromacs/topology/mtop_util.h"
#include "gromacs/topology/topology.h"
#include "gromacs/utility/cstringutil.h"
-#include "gromacs/utility/scoped_cptr.h"
#include "gromacs/utility/smalloc.h"
+#include "gromacs/utility/unique_cptr.h"
using gmx::RVec;
rvec *x_tmp = NULL, *v_tmp = NULL;
bool dummy;
readConfAndTopology(confin, &dummy, top, ePBC, x ? &x_tmp : NULL, v ? &v_tmp : NULL, box);
- gmx::scoped_guard_sfree xguard(x_tmp);
- gmx::scoped_guard_sfree vguard(v_tmp);
+ const gmx::sfree_guard xguard(x_tmp);
+ const gmx::sfree_guard vguard(v_tmp);
if (x && x_tmp)
{
*x = std::vector<RVec>(x_tmp, x_tmp + top->natoms);
v ? " and velocities" : "");
rvec *x_tmp = NULL, *v_tmp = NULL;
read_tps_conf(confin, top, ePBC, x ? &x_tmp : NULL, v ? &v_tmp : NULL, box, FALSE);
- gmx::scoped_guard_sfree xguard(x_tmp);
- gmx::scoped_guard_sfree vguard(v_tmp);
+ const gmx::sfree_guard xguard(x_tmp);
+ const gmx::sfree_guard vguard(v_tmp);
if (x && x_tmp)
{
*x = std::vector<RVec>(x_tmp, x_tmp + top->atoms.nr);