[cpp-xmltooling COMMIT] in /branches/REL_1/xmltooling: AbstractXMLObject.h security/impl/ChainingTrustEngine.cpp util...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Dec 15 09:29:25 GMT 2011
Author: scantor
Date: Thu Dec 15 09:29:25 2011
New Revision: 940
URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=940&view=rev
Log:
Header and boost fixes for Debian
Modified:
branches/REL_1/xmltooling/AbstractXMLObject.h
branches/REL_1/xmltooling/security/impl/ChainingTrustEngine.cpp
branches/REL_1/xmltooling/util/XMLHelper.cpp
Modified: branches/REL_1/xmltooling/AbstractXMLObject.h
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/AbstractXMLObject.h?rev=940&r1=939&r2=940&view=diff
==============================================================================
--- branches/REL_1/xmltooling/AbstractXMLObject.h (original)
+++ branches/REL_1/xmltooling/AbstractXMLObject.h Thu Dec 15 09:29:25 2011
@@ -30,6 +30,8 @@
#include <xmltooling/logging.h>
#include <xmltooling/QName.h>
#include <xmltooling/XMLObject.h>
+
+#include <memory>
#if defined (_MSC_VER)
#pragma warning( push )
Modified: branches/REL_1/xmltooling/security/impl/ChainingTrustEngine.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/security/impl/ChainingTrustEngine.cpp?rev=940&r1=939&r2=940&view=diff
==============================================================================
--- branches/REL_1/xmltooling/security/impl/ChainingTrustEngine.cpp (original)
+++ branches/REL_1/xmltooling/security/impl/ChainingTrustEngine.cpp Thu Dec 15 09:29:25 2011
@@ -52,7 +52,7 @@
};
static const XMLCh _TrustEngine[] = UNICODE_LITERAL_11(T,r,u,s,t,E,n,g,i,n,e);
-static const XMLCh type[] = UNICODE_LITERAL_4(t,y,p,e);
+static const XMLCh _type[] = UNICODE_LITERAL_4(t,y,p,e);
ChainingTrustEngine::ChainingTrustEngine(const DOMElement* e) : TrustEngine(e)
{
@@ -60,7 +60,7 @@
e = e ? XMLHelper::getFirstChildElement(e, _TrustEngine) : nullptr;
while (e) {
try {
- string t = XMLHelper::getAttrString(e, nullptr, type);
+ string t = XMLHelper::getAttrString(e, nullptr, _type);
if (!t.empty()) {
log.info("building TrustEngine of type %s", t.c_str());
addTrustEngine(XMLToolingConfig::getConfig().TrustEngineManager.newPlugin(t.c_str(), e));
Modified: branches/REL_1/xmltooling/util/XMLHelper.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/util/XMLHelper.cpp?rev=940&r1=939&r2=940&view=diff
==============================================================================
--- branches/REL_1/xmltooling/util/XMLHelper.cpp (original)
+++ branches/REL_1/xmltooling/util/XMLHelper.cpp Thu Dec 15 09:29:25 2011
@@ -131,10 +131,11 @@
void XMLHelper::getNonVisiblyUsedPrefixes(const XMLObject& tree, map<xstring,xstring>& prefixes)
{
map<xstring,xstring> child_prefixes;
- for_each(
- tree.getOrderedChildren().begin(), tree.getOrderedChildren().end(),
- if_(_1 != ((XMLObject*)nullptr))[lambda::bind(&getNonVisiblyUsedPrefixes, boost::ref(*_1), boost::ref(child_prefixes))]
- );
+ for(list<XMLObject*>::const_iterator i = tree.getOrderedChildren().begin(); i != tree.getOrderedChildren().end(); ++i) {
+ if (*i) {
+ getNonVisiblyUsedPrefixes(*(*i), child_prefixes);
+ }
+ }
const set<Namespace>& nsset = tree.getNamespaces();
for (set<Namespace>::const_iterator ns = nsset.begin(); ns != nsset.end(); ++ns) {
// Check for xmlns:xml.
More information about the commits
mailing list