clang-tidy: readability-non-const-parameter (2/2)
[alexxy/gromacs.git] / src / gromacs / fileio / enxio.cpp
index d3661e47a5e869f511410cef066a6615b8536c4b..1b3d358ef810912b3dd4c6c9da0e9dd5842d5f5d 100644 (file)
@@ -1250,9 +1250,9 @@ void get_enx_state(const char *fn, real t, const gmx_groups_t *groups, t_inputre
     sfree(fr);
 }
 
-static real ener_tensor_diag(int n, int *ind1, int *ind2,
+static real ener_tensor_diag(int n, const int *ind1, const int *ind2,
                              gmx_enxnm_t *enm1,
-                             int *tensi, int i,
+                             const int *tensi, int i,
                              t_energy e1[], t_energy e2[])
 {
     int    d1, d2;