Enable clang tidy/warnings for tests
[alexxy/gromacs.git] / src / gromacs / correlationfunctions / tests / autocorr.cpp
index 2d7053b4d9df635b8a300f9697562b73374aa10f..f5b5f2733a6e4d1c23898ee63e3c2e957c0c6fab 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2014,2015,2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2016,2017,2018, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -50,6 +50,7 @@
 
 #include <gtest/gtest.h>
 
+#include "gromacs/compat/make_unique.h"
 #include "gromacs/correlationfunctions/expfit.h"
 #include "gromacs/fft/fft.h"
 #include "gromacs/utility/gmxassert.h"
@@ -97,7 +98,7 @@ class AutocorrTest : public ::testing::Test
         {
             int         n        = 0;
             std::string fileName = "testCOS3.xvg";
-            data_                = CorrelationDataSetPointer(new CorrelationDataSet(fileName));
+            data_                = gmx::compat::make_unique<CorrelationDataSet>(fileName);
             nrFrames_            = data_->getNrLines();
             tempArgs_            = add_acf_pargs(&n, nullptr);
         }