Skip to content
Snippets Groups Projects
Commit 9bbe2c7d authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MPL] Fix function argument name to match decl.

parent 54ec5d3c
No related branches found
No related tags found
No related merge requests found
...@@ -32,14 +32,16 @@ Phase const& Medium::phase(std::size_t const index) const ...@@ -32,14 +32,16 @@ Phase const& Medium::phase(std::size_t const index) const
return *phases_[index]; return *phases_[index];
} }
Phase const& Medium::phase(std::string const& name) const Phase const& Medium::phase(std::string const& phase_name) const
{ {
return *BaseLib::findElementOrError( return *BaseLib::findElementOrError(
phases_.begin(), phases_.end(), phases_.begin(), phases_.end(),
[&name](std::unique_ptr<MaterialPropertyLib::Phase> const& phase) { [&phase_name](
return phase->name == name; std::unique_ptr<MaterialPropertyLib::Phase> const& phase) {
return phase->name == phase_name;
}, },
"Could not find phase name '" + name + "'."); "Could not find phase name '" + phase_name + "'.");
}
bool Medium::hasPhase(std::string const& phase_name) const bool Medium::hasPhase(std::string const& phase_name) const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment