From f2ec36ab5fa04e11dee655d9c623baac95db1eba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Nov 2013 07:46:45 +0200 Subject: Drop support for Xerces-C++ 2-series --- libxsd/xsd/cxx/parser/xerces/elements.txx | 32 ++----------------------------- 1 file changed, 2 insertions(+), 30 deletions(-) (limited to 'libxsd/xsd/cxx/parser/xerces/elements.txx') diff --git a/libxsd/xsd/cxx/parser/xerces/elements.txx b/libxsd/xsd/cxx/parser/xerces/elements.txx index 6ea728c..bc7f1e5 100644 --- a/libxsd/xsd/cxx/parser/xerces/elements.txx +++ b/libxsd/xsd/cxx/parser/xerces/elements.txx @@ -528,14 +528,8 @@ namespace xsd xml::string (e.message ()).c_str (), id.c_str (), id.c_str (), -#if _XERCES_VERSION >= 30000 static_cast (e.line ()), - static_cast (e.column ()) -#else - static_cast (e.line ()), - static_cast (e.column ()) -#endif - ); + static_cast (e.column ())); eh.fatalError (se); } @@ -566,14 +560,8 @@ namespace xsd xml::string (e.message ()).c_str (), id.c_str (), id.c_str (), -#if _XERCES_VERSION >= 30000 static_cast (e.line ()), - static_cast (e.column ()) -#else - static_cast (e.line ()), - static_cast (e.column ()) -#endif - ); + static_cast (e.column ())); eh.fatalError (se); } @@ -796,11 +784,7 @@ namespace xsd } } -#if _XERCES_VERSION >= 30000 for (XMLSize_t i (0), end (attributes.getLength()); i < end; ++i) -#else - for (unsigned int i (0), end (attributes.getLength()); i < end; ++i) -#endif { const XMLCh* xns (attributes.getURI (i)); @@ -882,11 +866,7 @@ namespace xsd template void event_router:: -#if _XERCES_VERSION >= 30000 characters (const XMLCh* const s, const XMLSize_t n) -#else - characters (const XMLCh* const s, const unsigned int n) -#endif { typedef std::basic_string string; @@ -963,16 +943,8 @@ namespace xsd if (id != 0) e.id (xml::transcode (id)); -#if _XERCES_VERSION >= 30000 e.line (static_cast (loc_->getLineNumber ())); e.column (static_cast (loc_->getColumnNumber ())); -#else - XMLSSize_t l (loc_->getLineNumber ()); - XMLSSize_t c (loc_->getColumnNumber ()); - - e.line (l == -1 ? 0 : static_cast (l)); - e.column (c == -1 ? 0: static_cast (c)); -#endif } } } -- cgit v1.1