Skip to content

Commit 8ae041f

Browse files
committed
Review comments / formatting.
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
1 parent 9f6d312 commit 8ae041f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

include/ocpp/v201/ctrlr_component_variables.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace v201 {
1515
///
1616
struct RequiredComponentVariable : ComponentVariable {
1717
/// \brief Constructor
18-
RequiredComponentVariable() : required_for({OcppProtocolVersion::v201, OcppProtocolVersion::v21}) {};
18+
RequiredComponentVariable() : required_for({OcppProtocolVersion::v201, OcppProtocolVersion::v21}){};
1919

2020
///
2121
/// \brief RequiredComponentVariable
@@ -27,7 +27,7 @@ struct RequiredComponentVariable : ComponentVariable {
2727
RequiredComponentVariable(const Component component, const std::optional<Variable> variable,
2828
const std::optional<CustomData> custom_data = std::nullopt,
2929
const std::set<OcppProtocolVersion>& required_for = {OcppProtocolVersion::v201,
30-
OcppProtocolVersion::v21}) :
30+
OcppProtocolVersion::v21}) :
3131
ComponentVariable(), required_for(required_for) {
3232
this->component = component;
3333
this->variable = variable;

lib/ocpp/v201/functional_blocks/transaction.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ void TransactionBlock::handle_transaction_event_response(const EnhancedMessage<M
284284
}
285285

286286
if (tariff_and_cost != nullptr) {
287-
this->tariff_and_cost->handle_cost_and_tariff(call_result.msg, original_msg, message.message[CALLRESULT_PAYLOAD]);
287+
this->tariff_and_cost->handle_cost_and_tariff(call_result.msg, original_msg,
288+
message.message[CALLRESULT_PAYLOAD]);
288289
}
289290

290291
if (original_msg.eventType == TransactionEventEnum::Ended) {

tests/lib/ocpp/v201/test_device_model.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class DeviceModelTest : public ::testing::Test {
2323
}
2424
};
2525

26-
/// \brief Test if value can be changed. And test if setting a value of 0 is allowed for a value that is allowed to be 0.
26+
/// \brief Test if value can be changed. And test if setting a value of 0 is allowed for a value that is allowed to be
27+
/// 0.
2728
TEST_F(DeviceModelTest, test_set_value_and_allow_zero) {
2829
// default value is 900
2930
auto r = dm->get_value<int>(cv, ocpp::v201::AttributeEnum::Actual);

0 commit comments

Comments
 (0)