From: Daniel Arndt Date: Wed, 9 Jan 2019 10:07:20 +0000 (+0100) Subject: Use range-based for loops in source/non_matching X-Git-Tag: v9.1.0-rc1~449^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc0c52b19133a17c4c1231c33496ef109ce0df06;p=dealii.git Use range-based for loops in source/non_matching --- 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,