amassari    2004/09/02 07:13:15

  Modified:    c/src/xercesc/validators/common GrammarResolver.cpp
  Log:
  If getXSModel was invoked when schema caching was off and nothing had changed, a new 
(empty) model was created even if a non-empty one was already available
  
  Revision  Changes    Path
  1.27      +6 -1      xml-xerces/c/src/xercesc/validators/common/GrammarResolver.cpp
  
  Index: GrammarResolver.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/common/GrammarResolver.cpp,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- GrammarResolver.cpp       21 May 2004 15:19:16 -0000      1.26
  +++ GrammarResolver.cpp       2 Sep 2004 14:13:13 -0000       1.27
  @@ -57,6 +57,9 @@
   
   /*
    * $Log$
  + * Revision 1.27  2004/09/02 14:13:13  amassari
  + * If getXSModel was invoked when schema caching was off and nothing had changed, a 
new (empty) model was created even if a non-empty one was already available
  + *
    * Revision 1.26  2004/05/21 15:19:16  peiyongz
    * [jira1216]  GrammarResolver never clears internal cache of
    * Grammar instances -- patch from David Bertoni
  @@ -567,8 +570,9 @@
           fGrammarsToAddToXSModel->removeAllElements();
           fXSModel = xsModel;             
       }
  -    else
  +    else if (!fXSModel)
       {
  +        // create a new model only if we didn't have one already
           fXSModel = new (fMemoryManager) XSModel(0, this, fMemoryManager);
       }
       return fXSModel; 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to