@@ -43,7 +43,7 @@ auto const terminal_and_angle_measurement_types = [] {
43
43
44
44
TEST_CASE (" Test current sensor" ) {
45
45
SUBCASE (" Symmetric Current Sensor" ) {
46
- for (auto const [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
46
+ for (auto const & [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
47
47
CAPTURE (terminal_type);
48
48
CAPTURE (angle_measurement_type);
49
49
@@ -131,7 +131,7 @@ TEST_CASE("Test current sensor") {
131
131
}
132
132
}
133
133
SUBCASE (" Wrong measured terminal type" ) {
134
- for (auto const terminal_type :
134
+ for (auto const & terminal_type :
135
135
{MeasuredTerminalType::source, MeasuredTerminalType::shunt, MeasuredTerminalType::load,
136
136
MeasuredTerminalType::generator, MeasuredTerminalType::node}) {
137
137
for (auto const angle_measurement_type :
@@ -148,7 +148,7 @@ TEST_CASE("Test current sensor") {
148
148
SUBCASE (" Symmetric calculation parameters" ) {
149
149
double const u_rated = 10.0e3 ;
150
150
double const base_current = base_power_3p / u_rated / sqrt3;
151
- for (auto const [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
151
+ for (auto const & [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
152
152
CurrentSensor<symmetric_t > sym_current_sensor{{.id = 1 ,
153
153
.measured_object = 1 ,
154
154
.measured_terminal_type = terminal_type,
0 commit comments