Missing const on Faultcode.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 24 Nov 2006 23:09:36 +0000 (23:09 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 24 Nov 2006 23:09:36 +0000 (23:09 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@211 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/soap/SOAP.h
xmltooling/soap/impl/SOAPClient.cpp
xmltooling/soap/impl/SOAPImpl.cpp

index 5f90c43..4ea21e2 100644 (file)
@@ -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;
index e5acc04..2b33055 100644 (file)
@@ -25,7 +25,7 @@
 #include "soap/SOAP.h"
 #include "soap/SOAPClient.h"
 #include "util/XMLHelper.h"
-#include "validation/ValidatorSuite.h"\r
+#include "validation/ValidatorSuite.h"
 
 #include <sstream>
 #include <log4cpp/Category.hh>
@@ -80,8 +80,8 @@ Envelope* SOAPClient::receive()
     XercesJanitor<DOMDocument> janitor(doc);
     auto_ptr<XMLObject> xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true));
     janitor.release();
-    if (!m_validate)\r
-        SchemaValidators.validate(xmlObject.get());\r
+    if (!m_validate)
+        SchemaValidators.validate(xmlObject.get());
 
     Envelope* env = dynamic_cast<Envelope*>(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)",
index 8f02f8a..be75300 100644 (file)
@@ -68,7 +68,7 @@ namespace {
             setCode(src.getCode());
         }
         
-        QName* getCode() const {
+        const QName* getCode() const {
             return m_qname;
         }