From 79ef3b1a52cfc3ba07d18ed92935d3d5caf6f477 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 18 May 2006 18:28:15 +0000 Subject: [PATCH] Stop auto-cloning ContentReferences. --- xmltooling/signature/ContentReference.h | 7 ------- xmltooling/signature/impl/XMLSecSignatureImpl.cpp | 2 -- xmltoolingtest/SignatureTest.h | 4 ---- 3 files changed, 13 deletions(-) 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(); -- 2.1.4