Browse Source

Fixed moving a reference away.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
dc7aabc2f1
  1. 2
      src/storm/settings/SettingsManager.cpp

2
src/storm/settings/SettingsManager.cpp

@ -404,7 +404,7 @@ namespace storm {
STORM_LOG_THROW(moduleIterator == this->modules.end(), storm::exceptions::IllegalFunctionCallException, "Unable to register module '" << moduleSettings->getModuleName() << "' because a module with the same name already exists."); STORM_LOG_THROW(moduleIterator == this->modules.end(), storm::exceptions::IllegalFunctionCallException, "Unable to register module '" << moduleSettings->getModuleName() << "' because a module with the same name already exists.");
// Take over the module settings object. // Take over the module settings object.
std::string const& moduleName = moduleSettings->getModuleName();
std::string moduleName = moduleSettings->getModuleName();
this->moduleNames.push_back(moduleName); this->moduleNames.push_back(moduleName);
this->modules.emplace(moduleSettings->getModuleName(), std::move(moduleSettings)); this->modules.emplace(moduleSettings->getModuleName(), std::move(moduleSettings));
auto iterator = this->modules.find(moduleName); auto iterator = this->modules.find(moduleName);

Loading…
Cancel
Save