Update clang-tidy to clang version 8
[alexxy/gromacs.git] / src / gromacs / analysisdata / abstractdata.cpp
index 341a979347a4673fc255f3f3028fe8d0b70baf88..39af90139bd8b62b5011ef31646e5c1654a83db1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2010,2011,2012,2013,2014,2015,2018, by the GROMACS development team, led by
+ * Copyright (c) 2010,2011,2012,2013,2014,2015,2018,2019, 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.
@@ -165,21 +165,21 @@ AbstractAnalysisData::requestStorage(int nframes)
 
 
 void
-AbstractAnalysisData::addModule(AnalysisDataModulePointer module)
+AbstractAnalysisData::addModule(const AnalysisDataModulePointer &module)
 {
-    impl_->modules_.addModule(this, std::move(module));
+    impl_->modules_.addModule(this, module);
 }
 
 
 void
 AbstractAnalysisData::addColumnModule(int col, int span,
-                                      AnalysisDataModulePointer module)
+                                      const AnalysisDataModulePointer &module)
 {
     GMX_RELEASE_ASSERT(col >= 0 && span >= 1,
                        "Invalid columns specified for a column module");
     std::shared_ptr<AnalysisDataProxy> proxy(
             new AnalysisDataProxy(col, span, this));
-    proxy->addModule(std::move(module));
+    proxy->addModule(module);
     addModule(proxy);
 }