/*
* 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.
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);
}