Skip to content

Commit

Permalink
bugfix for unclosed brackets in RbtPharmaSF.cxx (#127)
Browse files Browse the repository at this point in the history
* bugfix for unclosed brackets in RbtPharmaSF.cxx

* Apply suggestions from code review

remove `ends` coming from deprecated `strstream`

---------

Co-authored-by: ggutierrez <[email protected]>
  • Loading branch information
shuyana and ggutierrez-sunbright authored Sep 4, 2024
1 parent ac8d04b commit f9e528e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/RbtPharmaSF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ void RbtPharmaSF::ScoreMap(RbtStringVariantMap& scoreMap) const {
// Store the mandatory constraint scores
for (RbtUInt i = 0; i < m_conScores.size(); i++) {
ostringstream field;
field << name << ".con_" << i + 1 << ends;
field << name << ".con_" << i + 1;
scoreMap[field.str()] = m_conScores[i];
}
// Store the optional constraint scores (unsorted)
for (RbtUInt i = 0; i < m_optScores.size(); i++) {
ostringstream field;
field << name << ".opt_" << i + 1 << ends;
field << name << ".opt_" << i + 1;
scoreMap[field.str()] = m_optScores[i];
}
}
Expand Down

0 comments on commit f9e528e

Please sign in to comment.