Skip to content

Commit

Permalink
flush and close out stream
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed Jul 27, 2018
1 parent 9e840a2 commit 5b1d9b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef COMMON_H
#define COMMON_H

#define VERSION_NUM "0.4.0"
#define VERSION_NUM "0.5.0"

#define _DEBUG false

Expand Down
4 changes: 2 additions & 2 deletions src/writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Writer::Writer(ofstream* stream) {
mZipFile = NULL;
mZipped = false;
mOutStream = stream;
haveToClose = false;
haveToClose = true;
}

Writer::Writer(gzFile gzfile) {
mOutStream = NULL;
mZipFile = gzfile;
mZipped = true;
haveToClose = false;
haveToClose = true;
}

Writer::~Writer(){
Expand Down

0 comments on commit 5b1d9b7

Please sign in to comment.