Fixed quoting of string default arguments

This commit is contained in:
Joakim Hove
2013-09-13 10:26:56 +02:00
parent c11fdeeb42
commit 414752b78a
2 changed files with 7 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ namespace Opm {
void ParserStringItem::inlineNew(std::ostream& os) const {
os << "new ParserStringItem(" << "\"" << name() << "\"" << "," << ParserItemSizeEnum2String( sizeType() );
if (m_defaultSet)
os << "," << getDefault();
os << ",\"" << getDefault() << "\"";
os << ")";
}
}

View File

@@ -134,5 +134,11 @@ int main(int argc , char ** argv) {
intItem( of );
intItemWithDefault( of );
DoubleItem( of );
DoubleItemWithDefault( of );
stringItem( of );
stringItemWithDefault( of );
of.close();
}