[cpp-xmltooling COMMIT] in /branches/REL_1/xmltooling: encryption/impl/EncryptionImpl.cpp signature/impl/KeyInfoImpl....
noreply at shibboleth.net
noreply at shibboleth.net
Tue Nov 22 19:55:51 GMT 2011
Author: scantor
Date: Tue Nov 22 19:55:51 2011
New Revision: 928
URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=928&view=rev
Log:
https://issues.shibboleth.net/jira/browse/CPPOST-71
Modified:
branches/REL_1/xmltooling/encryption/impl/EncryptionImpl.cpp
branches/REL_1/xmltooling/signature/impl/KeyInfoImpl.cpp
branches/REL_1/xmltooling/soap/impl/SOAPImpl.cpp
Modified: branches/REL_1/xmltooling/encryption/impl/EncryptionImpl.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/encryption/impl/EncryptionImpl.cpp?rev=928&r1=927&r2=928&view=diff
==============================================================================
--- branches/REL_1/xmltooling/encryption/impl/EncryptionImpl.cpp (original)
+++ branches/REL_1/xmltooling/encryption/impl/EncryptionImpl.cpp Tue Nov 22 19:55:51 2011
@@ -72,6 +72,7 @@
m_pos_OAEPparams=m_pos_KeySize;
++m_pos_OAEPparams;
}
+
public:
virtual ~EncryptionMethodImpl() {
XMLString::release(&m_Algorithm);
@@ -90,9 +91,11 @@
setKeySize(src.getKeySize()->cloneKeySize());
if (src.getOAEPparams())
setOAEPparams(src.getOAEPparams()->cloneOAEPparams());
- VectorOf(XMLObject) v=getUnknownXMLObjects();
- for (vector<XMLObject*>::const_iterator i=src.m_UnknownXMLObjects.begin(); i!=src.m_UnknownXMLObjects.end(); ++i)
- v.push_back((*i)->clone());
+ for (vector<XMLObject*>::const_iterator i=src.m_UnknownXMLObjects.begin(); i!=src.m_UnknownXMLObjects.end(); ++i) {
+ if (*i) {
+ getUnknownXMLObjects().push_back((*i)->clone());
+ }
+ }
}
IMPL_XMLOBJECT_CLONE(EncryptionMethod);
@@ -141,10 +144,9 @@
TransformsImpl(const TransformsImpl& src)
: AbstractXMLObject(src), AbstractComplexElement(src), AbstractDOMCachingXMLObject(src) {
- VectorOf(xmlsignature::Transform) v=getTransforms();
for (vector<xmlsignature::Transform*>::const_iterator i=src.m_Transforms.begin(); i!=src.m_Transforms.end(); i++) {
if (*i) {
- v.push_back((*i)->cloneTransform());
+ getTransforms().push_back((*i)->cloneTransform());
}
}
}
@@ -171,6 +173,7 @@
m_children.push_back(nullptr);
m_pos_Transforms=m_children.begin();
}
+
public:
virtual ~CipherReferenceImpl() {
XMLString::release(&m_URI);
@@ -224,6 +227,7 @@
m_pos_CipherReference=m_pos_CipherValue;
++m_pos_CipherReference;
}
+
public:
virtual ~CipherDataImpl() {}
@@ -263,6 +267,7 @@
void init() {
m_Id=m_Target=nullptr;
}
+
public:
virtual ~EncryptionPropertyImpl() {
XMLString::release(&m_Id);
@@ -282,9 +287,11 @@
init();
setId(src.getId());
setTarget(src.getTarget());
- VectorOf(XMLObject) v=getUnknownXMLObjects();
- for (vector<XMLObject*>::const_iterator i=src.m_UnknownXMLObjects.begin(); i!=src.m_UnknownXMLObjects.end(); ++i)
- v.push_back((*i)->clone());
+ for (vector<XMLObject*>::const_iterator i=src.m_UnknownXMLObjects.begin(); i!=src.m_UnknownXMLObjects.end(); ++i) {
+ if (*i) {
+ getUnknownXMLObjects().push_back((*i)->clone());
+ }
+ }
}
IMPL_XMLOBJECT_CLONE(EncryptionProperty);
@@ -332,6 +339,7 @@
void init() {
m_Id=nullptr;
}
+
public:
virtual ~EncryptionPropertiesImpl() {
XMLString::release(&m_Id);
@@ -346,10 +354,9 @@
: AbstractXMLObject(src), AbstractComplexElement(src), AbstractDOMCachingXMLObject(src) {
init();
setId(src.getId());
- VectorOf(EncryptionProperty) v=getEncryptionPropertys();
for (vector<EncryptionProperty*>::const_iterator i=src.m_EncryptionPropertys.begin(); i!=src.m_EncryptionPropertys.end(); i++) {
if (*i) {
- v.push_back((*i)->cloneEncryptionProperty());
+ getEncryptionPropertys().push_back((*i)->cloneEncryptionProperty());
}
}
}
@@ -391,20 +398,20 @@
}
ReferenceTypeImpl(const XMLCh* nsURI, const XMLCh* localName, const XMLCh* prefix, const xmltooling::QName* schemaType)
- : AbstractXMLObject(nsURI, localName, prefix, schemaType) {
- m_URI=nullptr;
+ : AbstractXMLObject(nsURI, localName, prefix, schemaType), m_URI(nullptr) {
}
ReferenceTypeImpl(const ReferenceTypeImpl& src)
- : AbstractXMLObject(src), AbstractComplexElement(src), AbstractDOMCachingXMLObject(src) {
- m_URI=nullptr;
[... 583 lines stripped ...]
More information about the commits
mailing list