git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/branches/REL_2@418
fb386ef7-a10c-0410-8ebf-
fd3f8e989ab0
#ifdef HAVE_COVARIANT_RETURNS
return b->buildObject(samlconstants::SAML1_NS, Condition::LOCAL_NAME, samlconstants::SAML1_PREFIX, &schemaType);
#else
- return dynamic_cast<Statement*>(b->buildObject(samlconstants::SAML1_NS, Condition::LOCAL_NAME, samlconstants::SAML1_PREFIX, &schemaType));
+ return dynamic_cast<Condition*>(b->buildObject(samlconstants::SAML1_NS, Condition::LOCAL_NAME, samlconstants::SAML1_PREFIX, &schemaType));
#endif
}
throw xmltooling::XMLObjectException("Unable to obtain typed builder for Condition.");
#ifdef HAVE_COVARIANT_RETURNS
return b->buildObject(samlconstants::SAML20_NS, Condition::LOCAL_NAME, samlconstants::SAML20_PREFIX, &schemaType);
#else
- return dynamic_cast<Statement*>(b->buildObject(samlconstants::SAML20_NS, Condition::LOCAL_NAME, samlconstants::SAML20_PREFIX, &schemaType));
+ return dynamic_cast<Condition*>(b->buildObject(samlconstants::SAML20_NS, Condition::LOCAL_NAME, samlconstants::SAML20_PREFIX, &schemaType));
#endif
}
throw xmltooling::XMLObjectException("Unable to obtain typed builder for Condition.");