Remove some boost::scoped_ptr uses
commit01bbd57c487a4015c362036de0c8d497ae39e5a4
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 25 Oct 2015 19:24:04 +0000 (25 21:24 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Mon, 26 Oct 2015 06:08:53 +0000 (26 08:08 +0200)
treefc7f601dcb4eb048b9e8f5fdeb865f01a904a9e2
parentf03e1c88e74318ee7aaab4e799cab727658b5deb
Remove some boost::scoped_ptr uses

Replace these with const std::unique_ptr where possible (which provides
even stricter ownership).

Remove the need to use dynamic memory management for some patterns using
TestReferenceChecker by allowing creation of invalid objects that can
get their values later.  Also provide better semantics for assigning
these objects, using a few C++11 features.

Change-Id: Ia024b35d1cf18848de6691d1943ac5b4572a1759
18 files changed:
src/gromacs/analysisdata/tests/datatest.cpp
src/gromacs/analysisdata/tests/datatest.h
src/gromacs/analysisdata/tests/mock_datamodule.cpp
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/commandline/cmdlineoptionsmodule.cpp
src/gromacs/commandline/cmdlineprogramcontext.cpp
src/gromacs/onlinehelp/helpwritercontext.cpp
src/gromacs/selection/parser_internal.h
src/gromacs/selection/selhelp.cpp
src/gromacs/trajectoryanalysis/tests/cmdlinerunner.cpp
src/gromacs/utility/classhelpers.h
src/gromacs/utility/scoped_cptr.h
src/testutils/cmdlinetest.cpp
src/testutils/mpi-printer.cpp
src/testutils/refdata.cpp
src/testutils/refdata.h
src/testutils/stringtest.cpp