From fc39e42505a8ffd72ce942dcc3e95c05e8c6d9b2 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 2 May 2006 17:54:37 +0000 Subject: More string converter optimizations --- cpp/src/Ice/ProxyFactory.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cpp/src/Ice/ProxyFactory.cpp') diff --git a/cpp/src/Ice/ProxyFactory.cpp b/cpp/src/Ice/ProxyFactory.cpp index 8bf47bd1952..7d106c1f99a 100644 --- a/cpp/src/Ice/ProxyFactory.cpp +++ b/cpp/src/Ice/ProxyFactory.cpp @@ -51,7 +51,8 @@ ObjectPrx IceInternal::ProxyFactory::streamToProxy(BasicStream* s) const { Identity ident; - ident.__read(s); + s->read(ident.name, false); + s->read(ident.category, false); ReferencePtr ref = _instance->referenceFactory()->create(ident, s); return referenceToProxy(ref); @@ -62,13 +63,14 @@ IceInternal::ProxyFactory::proxyToStream(const ObjectPrx& proxy, BasicStream* s) { if(proxy) { - proxy->__reference()->getIdentity().__write(s); + s->write(proxy->__reference()->getIdentity().name, false); + s->write(proxy->__reference()->getIdentity().category, false); proxy->__reference()->streamWrite(s); } else { - Identity ident; - ident.__write(s); + s->write("", false); // name + s->write("", false); // category } } -- cgit v1.2.3