Enable clang tidy/warnings for tests
[alexxy/gromacs.git] / src / gromacs / random / tests / exponentialdistribution.cpp
index 684242433c084060acd7a67b754312571e875a90..759a2c17eebe4eb232f5527e3e02fb84e707d207 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,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.
@@ -64,6 +64,7 @@ TEST(ExponentialDistributionTest, Output)
     gmx::ExponentialDistribution<real>  dist(5.0);
     std::vector<real>                   result;
 
+    result.reserve(10);
     for (int i = 0; i < 10; i++)
     {
         result.push_back(dist(rng));