summaryrefslogtreecommitdiff
path: root/cpp/src/XMLTransform/XMLTransform.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2003-04-29 19:51:33 +0000
committerBernard Normier <bernard@zeroc.com>2003-04-29 19:51:33 +0000
commitd6b805efcf63a16a759f0a104db74c5e9c009f7d (patch)
tree2a73b6a3e15c2cf711a0c4f1ab12dd52687e003e /cpp/src/XMLTransform/XMLTransform.cpp
parentfile UserExceptionFactory.h was initially added on branch slicing. (diff)
downloadice-d6b805efcf63a16a759f0a104db74c5e9c009f7d.tar.bz2
ice-d6b805efcf63a16a759f0a104db74c5e9c009f7d.tar.xz
ice-d6b805efcf63a16a759f0a104db74c5e9c009f7d.zip
Sun: 64 bit + CC 5.3 support
Diffstat (limited to 'cpp/src/XMLTransform/XMLTransform.cpp')
-rw-r--r--cpp/src/XMLTransform/XMLTransform.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/cpp/src/XMLTransform/XMLTransform.cpp b/cpp/src/XMLTransform/XMLTransform.cpp
index 4a7e4171c4a..aa193397b55 100644
--- a/cpp/src/XMLTransform/XMLTransform.cpp
+++ b/cpp/src/XMLTransform/XMLTransform.cpp
@@ -369,7 +369,7 @@ XMLTransform::DocumentInfo::DocumentInfo(ICE_XERCES_NS DOMDocument* document, bo
_targetNamespace(targetNamespace)
{
ICE_XERCES_NS DOMNamedNodeMap* attributes = root->getAttributes();
- unsigned int max = attributes->getLength();
+ size_t max = attributes->getLength();
for(unsigned int i = 0; i < max; ++i)
{
ICE_XERCES_NS DOMNode* attribute = attributes->item(i);
@@ -2971,7 +2971,7 @@ XMLTransform::DBTransformer::transform(ICE_XERCES_NS DOMDocument* oldSchema, ICE
fullKey.append(header);
fullKey.append(&k[0], k.size());
fullKey.append(footer);
- ICE_XERCES_NS MemBufInputSource keySource((const XMLByte*)fullKey.data(), fullKey.size(), "key");
+ ICE_XERCES_NS MemBufInputSource keySource((const XMLByte*)fullKey.data(), static_cast<unsigned int>(fullKey.size()), "key");
parser.parse(keySource);
ICE_XERCES_NS DOMDocument* keyDoc = parser.getDocument();
@@ -2992,8 +2992,9 @@ XMLTransform::DBTransformer::transform(ICE_XERCES_NS DOMDocument* oldSchema, ICE
fullValue.append(header);
fullValue.append(&value[0], value.size());
fullValue.append(footer);
- ICE_XERCES_NS MemBufInputSource valueSource((const XMLByte*)fullValue.data(), fullValue.size(),
- "value");
+ ICE_XERCES_NS MemBufInputSource valueSource((const XMLByte*)fullValue.data(),
+ static_cast<unsigned int>(fullValue.size()),
+ "value");
parser.parse(valueSource);
ICE_XERCES_NS DOMDocument* valueDoc = parser.getDocument();
@@ -3149,7 +3150,9 @@ XMLTransform::DBTransformer::transform(const string& schemaStr)
try
{
- ICE_XERCES_NS MemBufInputSource source((const XMLByte*)schemaStr.data(), schemaStr.size(), "schema");
+ ICE_XERCES_NS MemBufInputSource source((const XMLByte*)schemaStr.data(),
+ static_cast<unsigned int>(schemaStr.size()),
+ "schema");
parser.parse(source);
schema = parser.getDocument();
}