Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes uneeded .close() calls #298

Closed
wants to merge 1 commit into from
Closed

Removes uneeded .close() calls #298

wants to merge 1 commit into from

Conversation

luxe
Copy link
Contributor

@luxe luxe commented Oct 19, 2015

These calls are not needed.
ofstream's destructor will close the file.
This is consistent with having your constructor open the file.
Even if the exception was thrown, your file will be closed when f falls out of scope.

These calls are not needed.  
ofstream's destructor will close the file.
This is consistent with having your constructor open the file.  
Even if the exception was thrown, your file will be closed when f falls out of scope.
@speth
Copy link
Member

speth commented Oct 19, 2015

Agreed. I imagine there are other instances of this as well that could be cleaned up at the same time.

@speth speth closed this in b751087 Nov 24, 2015
@speth speth mentioned this pull request Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants