summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IcePack/DescriptorParser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/IcePack/DescriptorParser.cpp b/cpp/src/IcePack/DescriptorParser.cpp
index b184dc49099..5d5692f6dec 100644
--- a/cpp/src/IcePack/DescriptorParser.cpp
+++ b/cpp/src/IcePack/DescriptorParser.cpp
@@ -182,7 +182,8 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
}
else
{
- _variables.back()[p->first] = substitute(p->second);
+ string v = substitute(p->second);
+ _variables.back()[p->first] = v;
}
}
@@ -370,7 +371,7 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
}
ObjectDescriptor object;
- object.type = getAttributeValue(attrs, "type");
+ object.type = getAttributeValueWithDefault(attrs, "type", "");
object.proxy = _communicator->stringToProxy(getAttributeValue(attrs, "identity") + "@" + _currentAdapter.id);
object.adapterId = _currentAdapter.id;
_currentAdapter.objects.push_back(object);