Skip to content

Commit 83f6a88

Browse files
committed
Code format
1 parent f643d9c commit 83f6a88

File tree

4 files changed

+11
-22
lines changed

4 files changed

+11
-22
lines changed

src/chargepoint/iso15118/Iso15118Manager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ void Iso15118Manager::handle(const ocpp::messages::Iso15118GetInstalledCertifica
375375

376376
// Notify handler to get the list of installed certificates
377377
std::vector<std::tuple<GetCertificateIdUseEnumType, Certificate, std::vector<Certificate>>> certificates;
378-
m_events_handler.iso15118GetInstalledCertificates(v2g_root_certificate, mo_root_certificate, v2g_certificate_chain, oem_root_certificate, certificates);
378+
m_events_handler.iso15118GetInstalledCertificates(
379+
v2g_root_certificate, mo_root_certificate, v2g_certificate_chain, oem_root_certificate, certificates);
379380
if (!certificates.empty())
380381
{
381382
// Compute hashes for each certificate

src/messages/IMessageConverter.h

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -290,25 +290,19 @@ class IMessageConverter
290290
class MessageType##ReqConverter : public IMessageConverter<MessageType##Req> \
291291
{ \
292292
public: \
293-
IMessageConverter<MessageType##Req>* clone() const override \
294-
{ \
295-
return new MessageType##ReqConverter(); \
296-
} \
293+
IMessageConverter<MessageType##Req>* clone() const override { return new MessageType##ReqConverter(); } \
297294
bool fromJson(const rapidjson::Value& json, MessageType##Req& data, std::string& error_code, std::string& error_message) override; \
298295
bool toJson(const MessageType##Req& data, rapidjson::Document& json) override; \
299296
}; \
300297
class MessageType##ConfConverter : public IMessageConverter<MessageType##Conf> \
301298
{ \
302299
public: \
303-
IMessageConverter<MessageType##Conf>* clone() const override \
304-
{ \
305-
return new MessageType##ConfConverter(); \
306-
} \
307-
bool fromJson(const rapidjson::Value& json, \
308-
MessageType##Conf& data, \
309-
std::string& error_code, \
310-
std::string& error_message) override; \
311-
bool toJson(const MessageType##Conf& data, rapidjson::Document& json) override; \
300+
IMessageConverter<MessageType##Conf>* clone() const override { return new MessageType##ConfConverter(); } \
301+
bool fromJson(const rapidjson::Value& json, \
302+
MessageType##Conf& data, \
303+
std::string& error_code, \
304+
std::string& error_message) override; \
305+
bool toJson(const MessageType##Conf& data, rapidjson::Document& json) override; \
312306
};
313307

314308
} // namespace messages

tests/tools/test_database.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,5 @@ TEST_SUITE("Database class test suite")
135135
CHECK_EQ(query.get(), nullptr);
136136
}
137137

138-
TEST_CASE("Cleanup")
139-
{
140-
std::filesystem::remove(test_database_path);
141-
}
138+
TEST_CASE("Cleanup") { std::filesystem::remove(test_database_path); }
142139
}

tests/tools/test_logs.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,7 @@ TEST_SUITE("Database class test suite")
201201
CHECK_FALSE(query->next());
202202
}
203203

204-
TEST_CASE("Cleanup")
205-
{
206-
std::filesystem::remove(test_database_path);
207-
}
204+
TEST_CASE("Cleanup") { std::filesystem::remove(test_database_path); }
208205
}
209206

210207
#endif // EXTERNAL_LOGGER

0 commit comments

Comments
 (0)