clang-tidy: readability-non-const-parameter (2/2)
[alexxy/gromacs.git] / src / gromacs / fileio / pdbio.cpp
index d6c7579199759b7517429e5fca7df086e2a1d568..761d1723d1fa18739134552e6dfff5b646312086 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.
@@ -426,7 +426,7 @@ void write_pdbfile(FILE *out, const char *title, const t_atoms *atoms, const rve
     sfree(index);
 }
 
-static int line2type(char *line)
+static int line2type(const char *line)
 {
     int  k;
     char type[8];
@@ -575,7 +575,7 @@ void get_pdb_atomnumber(const t_atoms *atoms, gmx_atomprop_t aps)
 }
 
 static int read_atom(t_symtab *symtab,
-                     char line[], int type, int natom,
+                     const char line[], int type, int natom,
                      t_atoms *atoms, rvec x[], int chainnum, gmx_bool bChange)
 {
     t_atom       *atomn;