Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / analysisdata / tests / datatest.h
index 1d32c2d0ae5b2e4aed7c197d25955dd58644cd38..1e1766b58b3d06815e77c2472a32c692a143c3be 100644 (file)
@@ -102,7 +102,7 @@ public:
     //! Returns the error in column \p i.
     real error(int i) const { return values_[i].error; }
     //! Returns whether the value in column \p i is present.
-    bool present(int /*i*/) const { return true; }
+    static bool present(int /*i*/) { return true; }
     //! Returns an AnalysisDataValue for column \p i.
     AnalysisDataValue value(int i) const
     {
@@ -158,7 +158,7 @@ public:
     //! Returns x coordinate for the frame.
     real x() const { return x_; }
     //! Returns error in the x coordinate for the frame.
-    real dx() const { return 0.0; }
+    static real dx() { return 0.0; }
 
     //! Number of individual point sets in the frame.
     int pointSetCount() const { return pointSets_.size(); }