From fc0c52b19133a17c4c1231c33496ef109ce0df06 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 9 Jan 2019 11:07:20 +0100 Subject: [PATCH] Use range-based for loops in source/non_matching --- contrib/utilities/run_clang_tidy.sh | 2 +- source/non_matching/immersed_surface_quadrature.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/utilities/run_clang_tidy.sh b/contrib/utilities/run_clang_tidy.sh index 06d1bb66ee..ebf6f8e5f2 100755 --- a/contrib/utilities/run_clang_tidy.sh +++ b/contrib/utilities/run_clang_tidy.sh @@ -68,4 +68,4 @@ CC=clang CXX=clang++ cmake "$ARGS" "$SRC" || (echo "cmake failed!"; false) || ex cmake --build . --target expand_all_instantiations || (echo "make expand_all_instantiations failed!"; false) || exit 3 -run-clang-tidy.py -p . -checks="$CHECKS" -quiet -header-filter="$SRC/include/*" +run-clang-tidy.py -p . -checks="$CHECKS" -quiet -header-filter="$SRC/include/*" -fix diff --git a/source/non_matching/immersed_surface_quadrature.cc b/source/non_matching/immersed_surface_quadrature.cc index 99ec807ef4..12e83b5976 100644 --- a/source/non_matching/immersed_surface_quadrature.cc +++ b/source/non_matching/immersed_surface_quadrature.cc @@ -28,7 +28,7 @@ namespace NonMatching { AssertDimension(weights.size(), points.size()); AssertDimension(normals.size(), points.size()); - for (auto normal : normals) + for (const auto &normal : normals) { (void)normal; Assert(std::abs(normal.norm() - 1.0) < 1e-9, -- 2.39.5