Skip to content

Commit

Permalink
Fasta: Use initialization list rather than affectation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikael-s committed Nov 6, 2014
1 parent 76e9f05 commit 3d37c7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions algo/core/fasta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,9 @@ OnlineFasta::OnlineFasta(const string &input,

OnlineFasta::OnlineFasta(istream &input,
int extract_field, string extract_separator)
:extract_field(extract_field),
:input(&input), extract_field(extract_field),
extract_separator(extract_separator)
{
this->input = &input;
input_allocated = false;
init();
}
Expand Down

0 comments on commit 3d37c7e

Please sign in to comment.