Missed a covariant.
authorScott Cantor <cantor.2@osu.edu>
Tue, 13 Feb 2007 15:59:00 +0000 (15:59 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 13 Feb 2007 15:59:00 +0000 (15:59 +0000)
xmltooling/signature/Signature.h
xmltooling/signature/impl/XMLSecSignatureImpl.cpp

index 0896ce9..a86bd71 100644 (file)
@@ -187,7 +187,11 @@ namespace xmlsignature {
     class XMLTOOL_API SignatureBuilder : public xmltooling::XMLObjectBuilder
     {
     public:
+#ifdef HAVE_COVARIANT_RETURNS
         virtual Signature* buildObject(
+#else
+        virtual xmltooling::XMLObject* buildObject(
+#endif
             const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix=NULL, const xmltooling::QName* schemaType=NULL
             ) const;
             
index a2a8cf8..b96b6ac 100644 (file)
@@ -399,7 +399,12 @@ XMLObject* XMLSecSignatureImpl::unmarshall(DOMElement* element, bool bindDocumen
     return this;
 }
 
-Signature* SignatureBuilder::buildObject(
+#ifdef HAVE_COVARIANT_RETURNS
+Signature*
+#else
+XMLObject*
+#endif
+SignatureBuilder::buildObject(
     const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const QName* schemaType
     ) const
 {