From bd4c1d47aeaf1d4bca76d5713e705b0869d3f2f7 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sat, 26 Dec 2009 03:25:25 +0000 Subject: Added missing const qualifiers, macros and util functions to help debugging, and a simple balanced tree implementation for use in lookup tables. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@893938 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/kernel/xml.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sca-cpp/trunk/kernel/xml.hpp') diff --git a/sca-cpp/trunk/kernel/xml.hpp b/sca-cpp/trunk/kernel/xml.hpp index 4b4bcd098e..eee6e290d8 100644 --- a/sca-cpp/trunk/kernel/xml.hpp +++ b/sca-cpp/trunk/kernel/xml.hpp @@ -315,9 +315,9 @@ const failable write(const list& l, const xmlTextWrite */ template class XMLWriteContext { public: - XMLWriteContext(const lambda& reduce, const R& accum) : reduce(reduce), accum(accum) { + XMLWriteContext(const lambda& reduce, const R& accum) : reduce(reduce), accum(accum) { } - const lambda reduce; + const lambda reduce; R accum; }; @@ -333,7 +333,7 @@ template int writeCallback(void *context, const char* buffer, int le /** * Convert a list of values to an XML document. */ -template const failable writeXML(const lambda& reduce, const R& initial, const list& l) { +template const failable writeXML(const lambda& reduce, const R& initial, const list& l) { XMLWriteContext cx(reduce, initial); xmlOutputBufferPtr out = xmlOutputBufferCreateIO(writeCallback, NULL, &cx, NULL); if (out == NULL) -- cgit v1.2.3