diff --git a/src/comm.h b/src/comm.h index 43a30675f3..e2df05a938 100644 --- a/src/comm.h +++ b/src/comm.h @@ -63,7 +63,7 @@ class Comm : protected Pointers { // methods Comm(class LAMMPS *); - virtual ~Comm(); + ~Comm() override; // NOTE: copy_arrays is called from a constructor and must not be made virtual void copy_arrays(class Comm *); virtual void init(); diff --git a/src/domain.h b/src/domain.h index 234bdbb837..a3a526610e 100644 --- a/src/domain.h +++ b/src/domain.h @@ -110,7 +110,7 @@ class Domain : protected Pointers { RegionCreatorMap *region_map; Domain(class LAMMPS *); - virtual ~Domain(); + ~Domain() override; virtual void init(); void set_initial_box(int expandflag = 1); virtual void set_global_box(); diff --git a/src/input.h b/src/input.h index faf45ab305..1fe79ba561 100644 --- a/src/input.h +++ b/src/input.h @@ -33,7 +33,7 @@ class Input : protected Pointers { class Variable *variable; // defined variables Input(class LAMMPS *, int, char **); - ~Input(); + ~Input() override; void file(); // process all input void file(const char *); // process an input script char *one(const std::string &); // process a single command diff --git a/src/pointers.h b/src/pointers.h index 44820d06eb..5f82872514 100644 --- a/src/pointers.h +++ b/src/pointers.h @@ -91,7 +91,7 @@ class Pointers { atomKK(ptr->atomKK), memoryKK(ptr->memoryKK), python(ptr->python) {} - virtual ~Pointers() {} + virtual ~Pointers() = default; // remove default members execept for the copy constructor diff --git a/src/region.h b/src/region.h index 043d3bdd36..83810f5be3 100644 --- a/src/region.h +++ b/src/region.h @@ -69,7 +69,7 @@ class Region : protected Pointers { int *list; Region(class LAMMPS *, int, char **); - virtual ~Region(); + ~Region() override; virtual void init(); int dynamic_check(); diff --git a/src/update.h b/src/update.h index b3fd1e4a3d..25af895bf3 100644 --- a/src/update.h +++ b/src/update.h @@ -60,7 +60,7 @@ class Update : protected Pointers { MinimizeCreatorMap *minimize_map; Update(class LAMMPS *); - ~Update(); + ~Update() override; void init(); void set_units(const char *); void create_integrate(int, char **, int); diff --git a/src/variable.h b/src/variable.h index dbad793b57..7b51b45f38 100644 --- a/src/variable.h +++ b/src/variable.h @@ -23,7 +23,7 @@ class Variable : protected Pointers { public: Variable(class LAMMPS *); - ~Variable(); + ~Variable() override; void set(int, char **); void set(const std::string &); void set(char *, int, char **); @@ -152,7 +152,7 @@ class VarReader : protected Pointers { char *id_fix; VarReader(class LAMMPS *, char *, char *, int); - ~VarReader(); + ~VarReader() override; int read_scalar(char *); int read_peratom();