Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / math / densityfit.cpp
index a9ae79c5e72f8374e40d2785ab2e2a3e7bd7794a..3301fc73dfa5914f01c2a41a98c4114f4e140b1c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2019, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020, 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.
@@ -283,7 +283,7 @@ public:
     }
 
 private:
-    real evaluatePrefactor(real comparisonSquaredSum, real referenceSquaredSum)
+    static real evaluatePrefactor(real comparisonSquaredSum, real referenceSquaredSum)
     {
         GMX_ASSERT(comparisonSquaredSum > 0,
                    "Squared sum of comparison values needs to be larger than zero.");