clang-tidy: readability-non-const-parameter (2/2)
[alexxy/gromacs.git] / src / gromacs / gmxana / hxprops.cpp
index 9c6d7aea0a09b7951e7febf03d70b8ab29a10d41..667c8f456ffd43d45e1242168622b987b2a01bdc 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -103,7 +103,7 @@ real ellipticity(int nres, t_bb bb[])
     return ell;
 }
 
-real ahx_len(int gnx, int index[], rvec x[])
+real ahx_len(int gnx, const int index[], rvec x[])
 /* Assume we have a list of Calpha atoms only! */
 {
     rvec dx;
@@ -113,7 +113,7 @@ real ahx_len(int gnx, int index[], rvec x[])
     return norm(dx);
 }
 
-real radius(FILE *fp, int nca, int ca_index[], rvec x[])
+real radius(FILE *fp, int nca, const int ca_index[], rvec x[])
 /* Assume we have all the backbone */
 {
     real dl2, dlt;
@@ -140,7 +140,7 @@ real radius(FILE *fp, int nca, int ca_index[], rvec x[])
     return std::sqrt(dlt/nca);
 }
 
-static real rot(rvec x1, rvec x2)
+static real rot(rvec x1, const rvec x2)
 {
     real phi1, dphi, cp, sp;
     real xx, yy;
@@ -156,7 +156,7 @@ static real rot(rvec x1, rvec x2)
     return dphi;
 }
 
-real twist(int nca, int caindex[], rvec x[])
+real twist(int nca, const int caindex[], rvec x[])
 {
     real pt, dphi;
     int  i, a0, a1;
@@ -179,7 +179,7 @@ real twist(int nca, int caindex[], rvec x[])
     return (pt/(nca-1));
 }
 
-real ca_phi(int gnx, int index[], rvec x[])
+real ca_phi(int gnx, const int index[], rvec x[])
 /* Assume we have a list of Calpha atoms only! */
 {
     real phi, phitot;
@@ -227,7 +227,7 @@ real dip(int nbb, int const bbind[], const rvec x[], const t_atom atom[])
     return norm(dipje);
 }
 
-real rise(int gnx, int index[], rvec x[])
+real rise(int gnx, const int index[], rvec x[])
 /* Assume we have a list of Calpha atoms only! */
 {
     real z, z0, ztot;