Skip to content

Commit

Permalink
Change deep copies to const references in result2msa
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Jul 18, 2021
1 parent ce7cf75 commit 7aade9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/result2msa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ int result2msa(int argc, const char **argv, const Command &command) {
}
result.append(1, '\n');
}else{
std::vector<unsigned char> seq = seqSet[i-1];
const std::vector<unsigned char> & seq = seqSet[i-1];
int seqStartPos = alnResults[i-1].dbStartPos;
size_t seqPos = 0;
std::string bt = alnResults[i-1].backtrace;
const std::string & bt = alnResults[i-1].backtrace;
size_t btPos = 0;

for (size_t pos = 0; pos < res.centerLength; pos++) {
Expand Down

0 comments on commit 7aade9d

Please sign in to comment.