Fixed quoting of string default arguments
This commit is contained in:
@@ -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 << ")";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,5 +134,11 @@ int main(int argc , char ** argv) {
|
||||
intItem( of );
|
||||
intItemWithDefault( of );
|
||||
|
||||
DoubleItem( of );
|
||||
DoubleItemWithDefault( of );
|
||||
|
||||
stringItem( of );
|
||||
stringItemWithDefault( of );
|
||||
|
||||
of.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user