projects
/
shibboleth
/
cpp-xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add code for non-covariant build.
[shibboleth/cpp-xmltooling.git]
/
xmltoolingtest
/
SignatureTest.h
diff --git
a/xmltoolingtest/SignatureTest.h
b/xmltoolingtest/SignatureTest.h
index
a733767
..
7e91f92
100644
(file)
--- a/
xmltoolingtest/SignatureTest.h
+++ b/
xmltoolingtest/SignatureTest.h
@@
-109,11
+109,11
@@
public:
const SimpleXMLObjectBuilder* b=dynamic_cast<const SimpleXMLObjectBuilder*>(XMLObjectBuilder::getBuilder(qname));
TS_ASSERT(b!=NULL);
const SimpleXMLObjectBuilder* b=dynamic_cast<const SimpleXMLObjectBuilder*>(XMLObjectBuilder::getBuilder(qname));
TS_ASSERT(b!=NULL);
- auto_ptr<SimpleXMLObject> sxObject(
b->buildObject(
));
+ auto_ptr<SimpleXMLObject> sxObject(
dynamic_cast<SimpleXMLObject*>(b->buildObject()
));
TS_ASSERT(sxObject.get()!=NULL);
VectorOf(SimpleXMLObject) kids=sxObject->getSimpleXMLObjects();
TS_ASSERT(sxObject.get()!=NULL);
VectorOf(SimpleXMLObject) kids=sxObject->getSimpleXMLObjects();
- kids.push_back(
b->buildObject(
));
- kids.push_back(
b->buildObject(
));
+ kids.push_back(
dynamic_cast<SimpleXMLObject*>(b->buildObject()
));
+ kids.push_back(
dynamic_cast<SimpleXMLObject*>(b->buildObject()
));
// Test some collection stuff
auto_ptr_XMLCh foo("Foo");
// Test some collection stuff
auto_ptr_XMLCh foo("Foo");