toInjectorType(): Pass parameter as "reference-to-const" rather than copied object.

This commit is contained in:
Bård Skaflestad 2012-05-15 17:22:05 +02:00
parent 156bf0a560
commit 562c133dff

View File

@ -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;