Skip to content

Commit

Permalink
Try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Jan 14, 2025
1 parent d1451f2 commit 6e4e861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/multisolver_interface/SolverConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ SolverConfig& SolverConfig::operator=(const std::string& rhs) {
return *this;
}
void SolverConfig::init(std::string solver_name) {
name.clear();
std::ranges::transform(solver_name, std::back_inserter(name), ::tolower);
name = std::move(solver_name);
std::ranges::transform(name, name.begin(), ::tolower);
if (save_restore_support.find(name) == save_restore_support.end()) {
throw LogUtils::XpansionError<std::invalid_argument>(
"Invalid solver name", LOGLOCATION);
Expand Down

0 comments on commit 6e4e861

Please sign in to comment.