mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
toInjectorType(): Pass parameter as "reference-to-const" rather than copied object.
This commit is contained in:
@@ -962,7 +962,7 @@ namespace Opm
|
|||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
InjectionSpecification::InjectorType toInjectorType(std::string type)
|
InjectionSpecification::InjectorType toInjectorType(const std::string& type)
|
||||||
{
|
{
|
||||||
if (type[0] == 'O') {
|
if (type[0] == 'O') {
|
||||||
return InjectionSpecification::OIL;
|
return InjectionSpecification::OIL;
|
||||||
|
|||||||
Reference in New Issue
Block a user