summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ProxyFactory.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-05-04 17:25:23 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-05-04 17:25:23 +0000
commite95f3f732745314c7cfe3892477418898fdf6ce8 (patch)
treed2eed905621c03942d88026b7b94a0ce3fa4c691 /cpp/src/Ice/ProxyFactory.cpp
parentfixing log messages (diff)
downloadice-e95f3f732745314c7cfe3892477418898fdf6ce8.tar.bz2
ice-e95f3f732745314c7cfe3892477418898fdf6ce8.tar.xz
ice-e95f3f732745314c7cfe3892477418898fdf6ce8.zip
More changes wrt string conversion
Diffstat (limited to 'cpp/src/Ice/ProxyFactory.cpp')
-rw-r--r--cpp/src/Ice/ProxyFactory.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/cpp/src/Ice/ProxyFactory.cpp b/cpp/src/Ice/ProxyFactory.cpp
index 7d106c1f99a..8bf47bd1952 100644
--- a/cpp/src/Ice/ProxyFactory.cpp
+++ b/cpp/src/Ice/ProxyFactory.cpp
@@ -51,8 +51,7 @@ ObjectPrx
IceInternal::ProxyFactory::streamToProxy(BasicStream* s) const
{
Identity ident;
- s->read(ident.name, false);
- s->read(ident.category, false);
+ ident.__read(s);
ReferencePtr ref = _instance->referenceFactory()->create(ident, s);
return referenceToProxy(ref);
@@ -63,14 +62,13 @@ IceInternal::ProxyFactory::proxyToStream(const ObjectPrx& proxy, BasicStream* s)
{
if(proxy)
{
- s->write(proxy->__reference()->getIdentity().name, false);
- s->write(proxy->__reference()->getIdentity().category, false);
+ proxy->__reference()->getIdentity().__write(s);
proxy->__reference()->streamWrite(s);
}
else
{
- s->write("", false); // name
- s->write("", false); // category
+ Identity ident;
+ ident.__write(s);
}
}