Skip to content
Snippets Groups Projects
Commit 31a734b0 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

sbmask function should be flagged as const indicating no side effects

parent 1f9504c5
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ class Compute : protected Pointers { ...@@ -152,7 +152,7 @@ class Compute : protected Pointers {
double **vbiasall; // stored velocity bias for all atoms double **vbiasall; // stored velocity bias for all atoms
int maxbias; // size of vbiasall array int maxbias; // size of vbiasall array
inline int sbmask(int j) { inline int sbmask(int j) const {
return j >> SBBITS & 3; return j >> SBBITS & 3;
} }
......
...@@ -30,7 +30,7 @@ class CreateBonds : protected Pointers { ...@@ -30,7 +30,7 @@ class CreateBonds : protected Pointers {
void command(int, char **); void command(int, char **);
private: private:
inline int sbmask(int j) { inline int sbmask(int j) const {
return j >> SBBITS & 3; return j >> SBBITS & 3;
} }
}; };
......
...@@ -45,7 +45,7 @@ class DeleteAtoms : protected Pointers { ...@@ -45,7 +45,7 @@ class DeleteAtoms : protected Pointers {
void recount_topology(); void recount_topology();
void options(int, char **); void options(int, char **);
inline int sbmask(int j) { inline int sbmask(int j) const {
return j >> SBBITS & 3; return j >> SBBITS & 3;
} }
......
...@@ -245,7 +245,7 @@ class Pair : protected Pointers { ...@@ -245,7 +245,7 @@ class Pair : protected Pointers {
ubuf(int arg) : i(arg) {} ubuf(int arg) : i(arg) {}
}; };
inline int sbmask(int j) { inline int sbmask(int j) const {
return j >> SBBITS & 3; return j >> SBBITS & 3;
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment