clang-tidy-11 fixes for gmxpreprocess
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / tests / topdirs.cpp
index cfc7d306b97609815b1e454dc257109e19ab298d..281b3e37661e872929baf42db5ba74b1d800a309 100644 (file)
@@ -54,7 +54,7 @@ TEST(TopDirTests, NamesArrayHasCorrectSize)
         // If the enumeration is extended, but there is no matching
         // name, then at least one element will be value initialized,
         // ie. to nullptr, which this test will catch.
-        auto name = enumValueToString(d);
+        const auto* name = enumValueToString(d);
         EXPECT_NE(name, nullptr);
     }
 }