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.
This commit is contained in:
Bård Skaflestad committed 2012-02-01 14:55:49 +01:00
1 parent e577b74a48
commit b5ebdd41b6
1 file changed
+3 -3
+3 -3
View File
@@ -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]);