diff --git a/modules/seq/alg/src/merge_pairwise_alignments.cc b/modules/seq/alg/src/merge_pairwise_alignments.cc index c522869cfa50c64a6609d59fb856b733aa6288cf..aa90c13598f3446d56deee80419dcbb74c1c94cb 100644 --- a/modules/seq/alg/src/merge_pairwise_alignments.cc +++ b/modules/seq/alg/src/merge_pairwise_alignments.cc @@ -143,11 +143,11 @@ AlignmentHandle MergePairwiseAlignments(const AlignmentList& pairwise_alns, AlignmentHandle ali_handle=*i; ConstSequenceHandle seq_handle=ali_handle.GetSequence(0); if (seq_handle.GetOffset()!=ref_offset) { - String error_string; - std::ostringstream error_ss(error_string); - error_ss << "The offset of the first sequence in alignment " << alignment_counter << - "is not identical to the offset of the reference sequence." << std::endl; - throw IntegrityError(error_string); + std::ostringstream error_ss; + error_ss << "The offset of the first sequence in alignment " + << alignment_counter + << " is not identical to the offset of the reference sequence."; + throw IntegrityError(error_ss.str()); } alignment_counter+=1; }