Skip to content

Commit cf80b72

Browse files
committed
fix readability-braces-around-statements issues
1 parent 17f5ef0 commit cf80b72

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

multi_physics/QED/QED_tests/test_picsar_span.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ BOOST_AUTO_TEST_CASE( picsar_span_range_based_loops )
4747
{
4848
auto arr = std::array<int,3>();
4949
int i = 0;
50-
for(auto& el : arr) el = ++i;
50+
for(auto& el : arr){ el = ++i };
5151
const auto span = picsar_span<const int>{arr.size(), arr.data()};
5252
int sum = 0;
53-
for(const auto& el : span) sum += el;
54-
for(auto el : span) sum += el;
53+
for(const auto& el : span){ sum += el; }
54+
for(auto el : span) { sum += el; }
5555
BOOST_CHECK_EQUAL(sum, 12);
5656
}
5757

@@ -67,8 +67,9 @@ BOOST_AUTO_TEST_CASE( picsar_span_copy )
6767

6868
BOOST_CHECK_EQUAL(cspan.size(), arr.size());
6969
BOOST_CHECK_EQUAL(cspan.data(), arr.data());
70-
for(size_t i = 0; i < arr.size(); ++i)
70+
for(size_t i = 0; i < arr.size(); ++i){
7171
BOOST_CHECK_EQUAL(cspan[i], arr[i]);
72+
}
7273
}
7374

7475
// *******************************

0 commit comments

Comments
 (0)