From: Scott Cantor Date: Thu, 18 May 2006 18:28:15 +0000 (+0000) Subject: Stop auto-cloning ContentReferences. X-Git-Tag: 1.0-alpha1~240 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=79ef3b1a52cfc3ba07d18ed92935d3d5caf6f477 Stop auto-cloning ContentReferences. --- diff --git a/xmltooling/signature/ContentReference.h b/xmltooling/signature/ContentReference.h index 7760de6..672dbea 100644 --- a/xmltooling/signature/ContentReference.h +++ b/xmltooling/signature/ContentReference.h @@ -49,13 +49,6 @@ namespace xmlsignature { */ virtual void createReferences(DSIGSignature* sig)=0; - /** - * Creates an independent copy of this object. - * - * @return the cloned object - */ - virtual ContentReference* clone() const=0; - protected: ContentReference() {} }; diff --git a/xmltooling/signature/impl/XMLSecSignatureImpl.cpp b/xmltooling/signature/impl/XMLSecSignatureImpl.cpp index 5218d57..d92bffd 100644 --- a/xmltooling/signature/impl/XMLSecSignatureImpl.cpp +++ b/xmltooling/signature/impl/XMLSecSignatureImpl.cpp @@ -162,8 +162,6 @@ Signature* XMLSecSignatureImpl::cloneSignature() const ret->m_key=m_key->clone(); if (m_keyInfo) ret->m_keyInfo=m_keyInfo->cloneKeyInfo(); - if (m_reference) - ret->m_reference=m_reference->clone(); xmltooling::clone(m_validators,ret->m_validators); diff --git a/xmltoolingtest/SignatureTest.h b/xmltoolingtest/SignatureTest.h index 2312f8e..79df238 100644 --- a/xmltoolingtest/SignatureTest.h +++ b/xmltoolingtest/SignatureTest.h @@ -39,10 +39,6 @@ public: XMLString::release(&m_uri); } - ContentReference* clone() const { - return new TestContext(m_uri); - } - void createReferences(DSIGSignature* sig) { DSIGReference* ref=sig->createReference(m_uri); ref->appendEnvelopedSignatureTransform();