amassari 2004/12/30 06:54:25
Modified: c/src/xercesc/dom/impl DOMDocumentImpl.cpp
Log:
Delete the user data informations only after invoking all the NODE_DELETED
handlers (jira# 620)
Revision Changes Path
1.60 +4 -5 xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp
Index: DOMDocumentImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- DOMDocumentImpl.cpp 28 Dec 2004 17:31:19 -0000 1.59
+++ DOMDocumentImpl.cpp 30 Dec 2004 14:54:25 -0000 1.60
@@ -1251,11 +1251,10 @@
const XMLCh* userKey =
fUserDataTableKeys.getValueForId(key2);
handler->handle(operation, userKey, data, src, dst);
}
-
- // if the operation is deleted, we in fact should remove the
data from the table
- if (operation == DOMUserDataHandler::NODE_DELETED)
- fUserDataTable->removeKey((void*)n,key2);
}
+ // if the operation is NODE_DELETED, we in fact should remove the
data from the table
+ if (operation == DOMUserDataHandler::NODE_DELETED)
+ fUserDataTable->removeKey((void*)n);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]