Fix cppcheck 1.64 warnings
[alexxy/gromacs.git] / src / gromacs / simd / tests / base.h
index 0f5c4dcca980276bcbbc0a12acdbbc192fb34ee9..913b40352b100a1b34758e4648cb83a9c24a8890 100644 (file)
@@ -96,15 +96,14 @@ class SimdBaseTest : public ::testing::Test
          * conservative so it works with (inverse) square root, division,
          * exponentials, logarithms, and error functions.
          */
-        SimdBaseTest()
-        {
+        SimdBaseTest() :
 #ifdef GMX_DOUBLE
-            ulpTol_       = 255LL; // Aim for roughly twice the precision we have in single.
+            ulpTol_(255LL), // Aim for roughly twice the precision we have in single.
 #else
-            ulpTol_       = 10LL;  // Be a bit liberal so compiler optimization doesn't bite us.
+            ulpTol_(10LL),  // Be a bit liberal so compiler optimization doesn't bite us.
 #endif
-            absTol_       = 0;
-            range_        = std::pair<real, real>(1, 10);
+            absTol_(0), range_(std::pair<real, real>(1, 10))
+        {
         }
 
         /*! \brief Adjust ulp tolerance from the default 10 (float) or 255 (double). */