mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
toInjectorType(): Pass parameter as "reference-to-const" rather than copied object.
This commit is contained in:
parent
156bf0a560
commit
562c133dff
@ -962,7 +962,7 @@ namespace Opm
|
||||
namespace
|
||||
{
|
||||
|
||||
InjectionSpecification::InjectorType toInjectorType(std::string type)
|
||||
InjectionSpecification::InjectorType toInjectorType(const std::string& type)
|
||||
{
|
||||
if (type[0] == 'O') {
|
||||
return InjectionSpecification::OIL;
|
||||
|
Loading…
Reference in New Issue
Block a user