From 9cf47fde5d42dbc84365edf616fec7bf99fe17f5 Mon Sep 17 00:00:00 2001 From: cantor Date: Fri, 24 Nov 2006 23:09:36 +0000 Subject: [PATCH] Missing const on Faultcode. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@211 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/soap/SOAP.h | 2 +- xmltooling/soap/impl/SOAPClient.cpp | 8 ++++---- xmltooling/soap/impl/SOAPImpl.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xmltooling/soap/SOAP.h b/xmltooling/soap/SOAP.h index 5f90c43..4ea21e2 100644 --- a/xmltooling/soap/SOAP.h +++ b/xmltooling/soap/SOAP.h @@ -43,7 +43,7 @@ namespace soap11 { BEGIN_XMLOBJECT(XMLTOOL_API,Faultcode,xmltooling::XMLObject,SOAP 1.1 faultcode element); /** Gets the QName content of the element. */ - virtual xmltooling::QName* getCode() const=0; + virtual const xmltooling::QName* getCode() const=0; /** Sets the QName content of the element. */ virtual void setCode(const xmltooling::QName* qname)=0; END_XMLOBJECT; diff --git a/xmltooling/soap/impl/SOAPClient.cpp b/xmltooling/soap/impl/SOAPClient.cpp index e5acc04..2b33055 100644 --- a/xmltooling/soap/impl/SOAPClient.cpp +++ b/xmltooling/soap/impl/SOAPClient.cpp @@ -25,7 +25,7 @@ #include "soap/SOAP.h" #include "soap/SOAPClient.h" #include "util/XMLHelper.h" -#include "validation/ValidatorSuite.h" +#include "validation/ValidatorSuite.h" #include #include @@ -80,8 +80,8 @@ Envelope* SOAPClient::receive() XercesJanitor janitor(doc); auto_ptr xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true)); janitor.release(); - if (!m_validate) - SchemaValidators.validate(xmlObject.get()); + if (!m_validate) + SchemaValidators.validate(xmlObject.get()); Envelope* env = dynamic_cast(xmlObject.get()); if (!env) @@ -101,7 +101,7 @@ Envelope* SOAPClient::receive() bool SOAPClient::handleFault(const Fault& fault) { - QName* code = (fault.getFaultcode() ? fault.getFaultcode()->getCode() : NULL); + const QName* code = (fault.getFaultcode() ? fault.getFaultcode()->getCode() : NULL); auto_ptr_char str((fault.getFaultstring() ? fault.getFaultstring()->getString() : NULL)); Category::getInstance(XMLTOOLING_LOGCAT".SOAPClient").error( "SOAP client detected a Fault: (%s) (%s)", diff --git a/xmltooling/soap/impl/SOAPImpl.cpp b/xmltooling/soap/impl/SOAPImpl.cpp index 8f02f8a..be75300 100644 --- a/xmltooling/soap/impl/SOAPImpl.cpp +++ b/xmltooling/soap/impl/SOAPImpl.cpp @@ -68,7 +68,7 @@ namespace { setCode(src.getCode()); } - QName* getCode() const { + const QName* getCode() const { return m_qname; } -- 2.1.4