Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
53789de8
Commit
53789de8
authored
Apr 17, 2018
by
Simon Spannagel
Browse files
FileWriter: close file before destruction
parent
11134bfe
Pipeline
#359508
passed with stages
in 9 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/FileWriter/FileWriter.cpp
View file @
53789de8
...
...
@@ -167,8 +167,7 @@ StatusCode FileWriter::run(Clipboard* clipboard) {
void
FileWriter
::
finalise
()
{
// Write the trees to file
// Loop over all objects to be written to file, and get the objects currently
// held on the Clipboard
// Loop over all objects to be written to file, and get the objects currently held on the Clipboard
for
(
unsigned
int
itList
=
0
;
itList
<
m_objectList
.
size
();
itList
++
)
{
// Check the type of object
...
...
@@ -215,5 +214,7 @@ void FileWriter::finalise() {
}
}
// Close the output file
m_outputFile
->
Close
();
LOG
(
DEBUG
)
<<
"Analysed "
<<
m_eventNumber
<<
" events"
;
}
Simon Spannagel
@simonspa
mentioned in issue
#21 (closed)
·
Apr 17, 2018
mentioned in issue
#21 (closed)
mentioned in issue #21
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment