DeckKeyword is immutable.

This commit is contained in:
Joakim Hove
2014-12-09 11:26:27 +01:00
parent 081b87b5b4
commit b924f6cd02
12 changed files with 42 additions and 42 deletions

View File

@@ -476,7 +476,7 @@ namespace Opm {
void Parser::applyUnitsToDeck(DeckPtr deck) const {
deck->initUnitSystem();
for (size_t index=0; index < deck->size(); ++index) {
DeckKeywordPtr deckKeyword = deck->getKeyword( index );
DeckKeywordConstPtr deckKeyword = deck->getKeyword( index );
if (isRecognizedKeyword( deckKeyword->name())) {
ParserKeywordConstPtr parserKeyword = getParserKeywordFromDeckName( deckKeyword->name() );
if (parserKeyword->hasDimension()) {