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

@ -22,8 +22,8 @@ protected:
void *lmp;
std::string INPUT_DIR = STRINGIFY(TEST_INPUT_FOLDER);
LibraryConfig(){};
~LibraryConfig() override{};
LibraryConfig() = default;
~LibraryConfig() override = default;
void SetUp() override
{
@ -35,7 +35,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);
lammps_command(lmp, "fix charge all property/atom q ghost yes");
lammps_command(lmp, "region box block 0 1 0 1 0 1");
lammps_command(lmp, "create_box 1 box");