Skip to content

Commit 612db1b

Browse files
authored
Merge pull request #8 from alibuild/alibot-cleanup-13769
Please consider the following formatting changes to #13769
2 parents e81a76f + d32b4d1 commit 612db1b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Generators/include/Generators/GeneratorFactory.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ namespace eventgen
4646
// main purpose is to init a FairPrimGen given some (Sim)Config
4747
struct GeneratorFactory {
4848
static void setPrimaryGenerator(o2::conf::SimConfig const&, FairPrimaryGenerator*);
49-
//Make destructor to delete all the pointers
50-
~GeneratorFactory() {
49+
// Make destructor to delete all the pointers
50+
~GeneratorFactory()
51+
{
5152
cleanup();
5253
}
53-
static void cleanup() {
54+
static void cleanup()
55+
{
5456
for (auto& gen : mBoxGenPtr) {
5557
delete gen;
5658
}

Generators/include/Generators/GeneratorService.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ class GeneratorService
6060
{
6161

6262
public:
63-
64-
~GeneratorService() {
63+
~GeneratorService()
64+
{
6565
o2::eventgen::GeneratorFactory::cleanup();
6666
};
6767

0 commit comments

Comments
 (0)