From b5ebdd41b671151a0ac3831bc0ab16b3b3d940dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 1 Feb 2012 14:55:49 +0100 Subject: [PATCH] Use explicit string constructor for keywords SWFN, SOF2, and TUNING. Keywords are supposed to be strings anyway, and it's better to enforce this restriction explicitly rather than to rely on implicit conversion from character literals. --- opm/core/eclipse/EclipseGridParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/core/eclipse/EclipseGridParser.cpp b/opm/core/eclipse/EclipseGridParser.cpp index ad50d18f..cb0165f4 100644 --- a/opm/core/eclipse/EclipseGridParser.cpp +++ b/opm/core/eclipse/EclipseGridParser.cpp @@ -98,9 +98,9 @@ namespace EclipseKeywords string("EQUIL"), string("PVCDO"), string("TSTEP"), // The following fields only have a dummy implementation // that allows us to ignore them. - "SWFN", - "SOF2", - "TUNING" + string("SWFN"), + string("SOF2"), + string("TUNING") }; const int num_special_fields = sizeof(special_fields) / sizeof(special_fields[0]);