use '= default' when default functions should be used

This commit is contained in:
Axel Kohlmeyer
2021-10-13 23:59:05 -04:00
parent cc416b97f0
commit 2fba6b44e4
76 changed files with 65 additions and 205 deletions

View File

@ -23,8 +23,8 @@ protected:
void *lmp;
std::string INPUT_DIR = STRINGIFY(TEST_INPUT_FOLDER);
GatherProperties(){};
~GatherProperties() override{};
GatherProperties() = default;
~GatherProperties() override = default;
void SetUp() override
{
@ -36,7 +36,7 @@ protected:
int argc = sizeof(args) / sizeof(char *);
::testing::internal::CaptureStdout();
lmp = lammps_open_no_mpi(argc, argv, NULL);
lmp = lammps_open_no_mpi(argc, argv, nullptr);
std::string output = ::testing::internal::GetCapturedStdout();
if (verbose) std::cout << output;
EXPECT_THAT(output, StartsWith("LAMMPS ("));