Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / utility / keyvaluetree.cpp
index 3d5b32abf0eb2d02f5a46ed3aeaf7d2b7c65a27f..2d49c09448ead4caff0eea692aa103a907a4baf0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,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.
@@ -275,7 +275,7 @@ private:
         writer_->writeLine(message);
     }
 
-    std::string formatValueForMissingMessage(const KeyValueTreeValue& value)
+    static std::string formatValueForMissingMessage(const KeyValueTreeValue& value)
     {
         if (value.isObject() || value.isArray())
         {