diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-08 16:00:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-08 16:00:33 +0200 |
commit | 209f07b8e9b8705814df22012e22856ec07f1592 (patch) | |
tree | 46e8927fcc9ab08e8e58f92913a0c895c06c4506 /xsde/cxx/parser/parser-source.cxx | |
parent | 7db026e8056914d113ac0bbfd9bdc4908a9e7874 (diff) |
Factor out common facets handling code in serializer
Diffstat (limited to 'xsde/cxx/parser/parser-source.cxx')
-rw-r--r-- | xsde/cxx/parser/parser-source.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xsde/cxx/parser/parser-source.cxx b/xsde/cxx/parser/parser-source.cxx index 521f810..54d5a05 100644 --- a/xsde/cxx/parser/parser-source.cxx +++ b/xsde/cxx/parser/parser-source.cxx @@ -36,14 +36,14 @@ namespace CXX base.inherits_p () && base_ret == ret_type (base.inherits ().base ())); - Boolean facets (false); // Whether we need to set facets. + Boolean enum_facets (false); // Whether we need to set enum facets. if (validation) { - StringBasedType t (facets); + StringBasedType t (enum_facets); t.dispatch (e); } - if (facets || same || ret == L"void" || poly_code || + if (enum_facets || same || ret == L"void" || poly_code || (tiein && !(base_same || base_ret == L"void"))) { os << "// " << name << endl @@ -155,7 +155,7 @@ namespace CXX << "}"; } - if (facets) + if (enum_facets) { typedef Cult::Containers::Set<String> Enums; Enums enums; |