This is an automated email from the ASF dual-hosted git repository. borisk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/xerces-c.git
commit e5a7153aa744e735a6fa914e554f246da233cb28 Author: Scott Cantor <scan...@apache.org> AuthorDate: Mon Dec 30 17:05:40 2019 +0000 XERCESC-2126 - Type Confusion from DTDGrammar to SchemaGrammar git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@1872122 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/validators/schema/SchemaValidator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xercesc/validators/schema/SchemaValidator.cpp b/src/xercesc/validators/schema/SchemaValidator.cpp index 5d0625e..10a06b3 100644 --- a/src/xercesc/validators/schema/SchemaValidator.cpp +++ b/src/xercesc/validators/schema/SchemaValidator.cpp @@ -769,10 +769,10 @@ void SchemaValidator::preContentValidation(bool, RefHashTableOfEnumerator<Grammar> grammarEnum = fGrammarResolver->getGrammarEnumerator(); while (grammarEnum.hasMoreElements()) { - SchemaGrammar& sGrammar = (SchemaGrammar&) grammarEnum.nextElement(); - if (sGrammar.getGrammarType() != Grammar::SchemaGrammarType || sGrammar.getValidated()) + Grammar& grammar = grammarEnum.nextElement(); + if (grammar.getGrammarType() != Grammar::SchemaGrammarType || grammar.getValidated()) continue; - + SchemaGrammar& sGrammar = (SchemaGrammar&) grammar; sGrammar.setValidated(true); RefHash3KeysIdPoolEnumerator<SchemaElementDecl> elemEnum = sGrammar.getElemEnumerator(); --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org