clang-tidy: readability-non-const-parameter (2/2)
[alexxy/gromacs.git] / src / gromacs / gmxana / fitahx.cpp
index dc6f581d074bbb1ac991b8698e73d3e4374d4de8..2d828082a3170bbb5075ce245ffda2408e16d6a7 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,2017, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,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.
@@ -45,7 +45,7 @@
 #include "gromacs/utility/fatalerror.h"
 #include "gromacs/utility/smalloc.h"
 
-static void my_calc_xcm(int nbb, int bbind[], rvec x[], rvec xcm)
+static void my_calc_xcm(int nbb, const int bbind[], rvec x[], rvec xcm)
 {
     int    i, m, ai;
 
@@ -61,7 +61,7 @@ static void my_calc_xcm(int nbb, int bbind[], rvec x[], rvec xcm)
     }
 }
 
-static void my_sub_xcm(int nbb, int bbind[], rvec x[], rvec xcm)
+static void my_sub_xcm(int nbb, const int bbind[], rvec x[], rvec xcm)
 {
     int i, ai;