/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2013,2014,2015,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,2019,2020,2021, 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 CommandLineModuleManagerTestBase::initManager(const CommandLine& args, const char* realBinaryName)
{
GMX_RELEASE_ASSERT(impl_ == nullptr, "initManager() called more than once in test");
- impl_.reset(new Impl(args, realBinaryName));
+ impl_ = std::make_unique<Impl>(args, realBinaryName);
}
MockModule& CommandLineModuleManagerTestBase::addModule(const char* name, const char* description)
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2009-2017, The GROMACS development team.
- * Copyright (c) 2019, by the GROMACS development team, led by
+ * Copyright (c) 2019,2021, 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.
SelectionParserSymbolIterator& SelectionParserSymbolIterator::operator=(const SelectionParserSymbolIterator& other)
{
- impl_.reset(new Impl(*other.impl_));
+ impl_ = std::make_unique<Impl>(*other.impl_);
return *this;
}