You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2004/09/10 19:36:13 UTC

cvs commit: xml-xerces/c/src/xercesc/internal XMLGrammarPoolImpl.cpp

cargilld    2004/09/10 10:36:13

  Modified:    c/src/xercesc/internal XMLGrammarPoolImpl.cpp
  Log:
  Return bool as described in the interface for cacheGrammar instead of throwing an exception.  Fix from Dave Bertoni.
  
  Revision  Changes    Path
  1.22      +5 -2      xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.cpp
  
  Index: XMLGrammarPoolImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- XMLGrammarPoolImpl.cpp	8 Sep 2004 13:56:13 -0000	1.21
  +++ XMLGrammarPoolImpl.cpp	10 Sep 2004 17:36:13 -0000	1.22
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.22  2004/09/10 17:36:13  cargilld
  + * Return bool as described in the interface for cacheGrammar instead of throwing an exception.  Fix from Dave Bertoni.
  + *
    * Revision 1.21  2004/09/08 13:56:13  peiyongz
    * Apache License Version 2.0
    *
  @@ -170,7 +173,7 @@
   
       if (fGrammarRegistry->containsKey(grammarKey)) 
       {
  -        ThrowXMLwithMemMgr(RuntimeException, XMLExcepts::GC_ExistingGrammar, getMemoryManager());
  +        return false;
       }
   
       fGrammarRegistry->put((void*) grammarKey, gramToCache);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org