From 73abb6e94842fafa3ece45b6e99678dbdf1603c0 Mon Sep 17 00:00:00 2001 From: Gareth Reakes <gareth@apache.org> Date: Wed, 14 May 2003 19:06:05 +0000 Subject: [PATCH] We need to initialize the values for the parameters. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174965 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/dom/impl/DOMConfigurationImpl.cpp | 3 ++- src/xercesc/dom/impl/DOMConfigurationImpl.hpp | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/xercesc/dom/impl/DOMConfigurationImpl.cpp b/src/xercesc/dom/impl/DOMConfigurationImpl.cpp index c5729f5bc..8ecb063d3 100644 --- a/src/xercesc/dom/impl/DOMConfigurationImpl.cpp +++ b/src/xercesc/dom/impl/DOMConfigurationImpl.cpp @@ -114,8 +114,9 @@ const XMLCh DOMConfigurationImpl::fgSCHEMA_TYPE[] = { chLatin_s, chLatin_c, chLa /* schema-location */ const XMLCh DOMConfigurationImpl::fgSCHEMA_LOCATION[] = { chLatin_s, chLatin_c, chLatin_h, chLatin_e, chLatin_m, chLatin_a, chDash, chLatin_l, chLatin_o, chLatin_c, chLatin_a, chLatin_t, chLatin_i, chLatin_o, chLatin_n, chNull }; +//const unsigned short DOMConfigurationImpl::fDEFAULT_VALUES = 0x2596; -DOMConfigurationImpl::DOMConfigurationImpl(): featureValues(0x0000), fTrue(new bool(true)), +DOMConfigurationImpl::DOMConfigurationImpl(): featureValues(fDEFAULT_VALUES), fTrue(new bool(true)), fFalse(new bool(false)), fErrorHandler(0), fSchemaType(0), fSchemaLocation(0) { } diff --git a/src/xercesc/dom/impl/DOMConfigurationImpl.hpp b/src/xercesc/dom/impl/DOMConfigurationImpl.hpp index 596cd3f22..9f5bdac72 100644 --- a/src/xercesc/dom/impl/DOMConfigurationImpl.hpp +++ b/src/xercesc/dom/impl/DOMConfigurationImpl.hpp @@ -175,6 +175,12 @@ public: static const XMLCh fgSCHEMA_TYPE[]; static const XMLCh fgSCHEMA_LOCATION[]; + // The default values for the boolean parameters + // from CANONICAL_FORM to WHITESPACE_IN_ELEMENT_CONTENT + // 10010110010110 = 0x2596 + static const unsigned short fDEFAULT_VALUES = 0x2596; + + private: // implements a simple map between the name and its enum value DOMConfigurationFeature getFeatureFlag(const XMLCh* name) const; -- GitLab