Add const cast for older xmlsec.
[shibboleth/cpp-opensaml.git] / saml / signature / ContentReference.cpp
index 127dbbd..a40fbc6 100644 (file)
@@ -96,7 +96,7 @@ void ContentReference::createReferences(DSIGSignature* sig)
         }
         if (!prefixes.empty()) {
             prefixes.erase(prefixes.begin() + prefixes.size() - 1);
-            c14n->setInclusiveNamespaces(prefixes.c_str());
+            c14n->setInclusiveNamespaces(const_cast<XMLCh*>(prefixes.c_str()));
         }
     }
 }