summaryrefslogtreecommitdiff
path: root/src/xmlcomposer.cpp
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-02-13 17:59:50 +0000
committerStef Walter <stef@memberwebs.com>2006-02-13 17:59:50 +0000
commit495e29b4d34d2f70ae39029a967d3f1322067de7 (patch)
tree98394a2075f5ac07b02d31357ea0e349db0df08c /src/xmlcomposer.cpp
parentbf005765a78aa57434119630dfd2351345681478 (diff)
Fix build problems with GCC 4.0
Diffstat (limited to 'src/xmlcomposer.cpp')
-rw-r--r--src/xmlcomposer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xmlcomposer.cpp b/src/xmlcomposer.cpp
index 2f77545..6a731ff 100644
--- a/src/xmlcomposer.cpp
+++ b/src/xmlcomposer.cpp
@@ -1016,10 +1016,12 @@ ON_CONTROLWORD(ListOverrideTable)
// the list node for overriding, using the 'listid' and 'ls' we gathered
if(curList != NULL && lsId != -1)
{
- DOM::Element parent = (const DOM::Element&)curList.getParentNode();
+ DOM::Node node = curList.getParentNode();
+ DOM::Element parent = (DOM::Element&)node;
if(parent != NULL)
{
- curList = (const DOM::Element&)curList.cloneNode(true);
+ node = curList.cloneNode(true);
+ curList = (DOM::Element&)node;
if(curList != NULL)
{
parent.appendChild(curList);