Skip to content

Commit

Permalink
Move stream
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcais committed Feb 8, 2018
1 parent 36f8e6b commit 5c87245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/jellyfish/mer_overlap_sequence_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class mer_overlap_sequence_parser : public jellyfish::cooperative_pool2<mer_over
// streams_iterator_ noticed that we closed that stream before
// requesting a new one.
st.stream.reset();
st.stream = streams_iterator_.next();
st.stream = std::move(streams_iterator_.next());
if(!st.stream.good()) {
st.type = DONE_TYPE;
return false;
Expand Down
2 changes: 1 addition & 1 deletion include/jellyfish/whole_sequence_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class whole_sequence_parser : public jellyfish::cooperative_pool2<whole_sequence
protected:
void open_next_file(stream_status& st) {
st.stream.reset();
st.stream = streams_iterator_.next();
st.stream = std::move(streams_iterator_.next());
if(!st.stream.good()) {
st.type = DONE_TYPE;
return;
Expand Down

0 comments on commit 5c87245

Please sign in to comment.