diff options
Diffstat (limited to 'xsd/cxx/tree/parser-source.cxx')
-rw-r--r-- | xsd/cxx/tree/parser-source.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xsd/cxx/tree/parser-source.cxx b/xsd/cxx/tree/parser-source.cxx index 66abf96..94d0b91 100644 --- a/xsd/cxx/tree/parser-source.cxx +++ b/xsd/cxx/tree/parser-source.cxx @@ -295,18 +295,16 @@ namespace CXX // Boolean fund (false); - { IsFundamentalType test (fund); test.dispatch (t); } // Check if we need to handle xsi:type and substitution groups. - // If this element's type is anonymous or mapped to a fundamental - // C++ type then we don't need to do anything. + // If this element's type is anonymous then we don't need to do + // anything. // - Boolean poly (!fund && polymorphic && - !t.context ().count ("anonymous")); + Boolean poly (polymorphic && polymorphic_p (t) && !anonymous_p (t)); // const DOMDocument& // |