diff --git a/src/xercesc/util/XMLAbstractDoubleFloat.cpp b/src/xercesc/util/XMLAbstractDoubleFloat.cpp index 87abc9a72567dc77fe8d1d936d010444194b12dc..519f1f85ab9ec906657619a03add0b894bf16dd6 100644 --- a/src/xercesc/util/XMLAbstractDoubleFloat.cpp +++ b/src/xercesc/util/XMLAbstractDoubleFloat.cpp @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * Revision 1.25 2004/01/13 19:50:56 peiyongz + * remove parseContent() + * * Revision 1.24 2004/01/12 16:23:39 neilg * remove use of static buffers * @@ -181,11 +184,6 @@ XMLAbstractDoubleFloat::~XMLAbstractDoubleFloat() fMemoryManager->deallocate(fFormattedString);//delete [] fFormattedString; } -void XMLAbstractDoubleFloat::parseContent(const XMLCh* const strValue) -{ - init(strValue); -} - void XMLAbstractDoubleFloat::init(const XMLCh* const strValue) { if ((!strValue) || (!*strValue)) diff --git a/src/xercesc/util/XMLAbstractDoubleFloat.hpp b/src/xercesc/util/XMLAbstractDoubleFloat.hpp index 0c3ec9334fdf01d99a1f290becd31bafcb1634a2..bf2313bfa3c83856497a5d2d801d42661fef68f1 100644 --- a/src/xercesc/util/XMLAbstractDoubleFloat.hpp +++ b/src/xercesc/util/XMLAbstractDoubleFloat.hpp @@ -57,8 +57,8 @@ /* * $Id$ * $Log$ - * Revision 1.18 2004/01/03 00:03:18 peiyongz - * parseContent + * Revision 1.19 2004/01/13 19:50:56 peiyongz + * remove parseContent() * * Revision 1.17 2003/12/17 00:18:35 cargilld * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data. @@ -199,8 +199,6 @@ public: virtual int getSign() const; - virtual void parseContent(const XMLCh* const); - MemoryManager* getMemoryManager() const; /*** diff --git a/src/xercesc/util/XMLBigDecimal.cpp b/src/xercesc/util/XMLBigDecimal.cpp index 15039494b7b66b9790c1356a3b830f994d2719b0..c3fb6f8ce86911d269900a1a26f50f570cb06279 100644 --- a/src/xercesc/util/XMLBigDecimal.cpp +++ b/src/xercesc/util/XMLBigDecimal.cpp @@ -56,14 +56,8 @@ /* * $Log$ - * Revision 1.20 2004/01/06 04:42:04 neilg - * Since parseContent may now be called outside a constructor, - * the destructor may subsequently be invoked. If this happens, - * an attempt will be made to delete fRawData if it is non-zero. - * Therefore, 0 it before throwing the exception after cleanUp() is called. - * - * Revision 1.19 2004/01/03 00:03:18 peiyongz - * parseContent + * Revision 1.21 2004/01/13 19:50:56 peiyongz + * remove parseContent() * * Revision 1.18 2003/12/23 21:48:14 peiyongz * Absorb exception thrown in getCanonicalRepresentation and return 0 @@ -183,16 +177,6 @@ XMLBigDecimal::XMLBigDecimal(const XMLCh* const strValue, , fRawData(0) , fIntVal(0) , fMemoryManager(manager) -{ - parseContent(strValue); -} - -XMLBigDecimal::~XMLBigDecimal() -{ - cleanUp(); -} - -void XMLBigDecimal::parseContent(const XMLCh* const strValue) { if ((!strValue) || (!*strValue)) ThrowXMLwithMemMgr(NumberFormatException, XMLExcepts::XMLNUM_emptyString, fMemoryManager); @@ -215,11 +199,15 @@ void XMLBigDecimal::parseContent(const XMLCh* const strValue) catch(...) { cleanUp(); - fRawData = 0; throw; } } +XMLBigDecimal::~XMLBigDecimal() +{ + cleanUp(); +} + void XMLBigDecimal::cleanUp() { // if (fIntVal) diff --git a/src/xercesc/util/XMLBigDecimal.hpp b/src/xercesc/util/XMLBigDecimal.hpp index f7d3a304ed40152dd10297d074490811256f2f3a..33a8e8612983d47cc56060bc6317d328c69de688 100644 --- a/src/xercesc/util/XMLBigDecimal.hpp +++ b/src/xercesc/util/XMLBigDecimal.hpp @@ -124,8 +124,6 @@ public: virtual int getSign() const; - virtual void parseContent(const XMLCh* const); - const XMLCh* getValue() const; unsigned int getScale() const; diff --git a/src/xercesc/util/XMLDateTime.cpp b/src/xercesc/util/XMLDateTime.cpp index c9694344be76a034375d4654a2ee5277e7e1791a..75c7b04c1525b053ad01f498507be6917415fe35 100644 --- a/src/xercesc/util/XMLDateTime.cpp +++ b/src/xercesc/util/XMLDateTime.cpp @@ -57,6 +57,9 @@ /* * $Id$ * $Log$ + * Revision 1.23 2004/01/13 19:50:56 peiyongz + * remove parseContent() + * * Revision 1.22 2004/01/13 16:34:20 cargilld * Misc memory management changes. * @@ -593,10 +596,6 @@ int XMLDateTime::getSign() const return 0; } -void XMLDateTime::parseContent(const XMLCh* const) -{ -} - // --------------------------------------------------------------------------- // Parsers // --------------------------------------------------------------------------- diff --git a/src/xercesc/util/XMLDateTime.hpp b/src/xercesc/util/XMLDateTime.hpp index fad1773376d5d2493b55c6400e7a3e4e4bf79fd4..d50d256ce6dbca3e833f1e38bca02e1c44902605 100644 --- a/src/xercesc/util/XMLDateTime.hpp +++ b/src/xercesc/util/XMLDateTime.hpp @@ -57,8 +57,8 @@ /* * $Id$ * $Log$ - * Revision 1.15 2004/01/03 00:03:18 peiyongz - * parseContent + * Revision 1.16 2004/01/13 19:50:56 peiyongz + * remove parseContent() * * Revision 1.14 2003/12/31 02:34:11 neilg * enable production of canonical representations for dates with negative years, or years >9999 @@ -189,8 +189,6 @@ public: virtual int getSign() const; - virtual void parseContent(const XMLCh* const); - // ----------------------------------------------------------------------- // Canonical Representation // ----------------------------------------------------------------------- diff --git a/src/xercesc/util/XMLNumber.hpp b/src/xercesc/util/XMLNumber.hpp index fa3ab90879cfda1ad51096d81f3f2a3f70cb7a8f..42997b845db672d0d93ae90bf4616ad7afd2d1b6 100644 --- a/src/xercesc/util/XMLNumber.hpp +++ b/src/xercesc/util/XMLNumber.hpp @@ -57,8 +57,8 @@ /* * $Id$ * $Log$ - * Revision 1.11 2004/01/03 00:03:18 peiyongz - * parseContent + * Revision 1.12 2004/01/13 19:50:56 peiyongz + * remove parseContent() * * Revision 1.10 2003/10/17 21:10:55 peiyongz * loadNumber() added @@ -166,8 +166,6 @@ public: */ virtual int getSign() const = 0; - virtual void parseContent(const XMLCh* const) = 0; - /*** * Support for Serialization/De-serialization ***/