diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-15 00:42:58 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-15 00:42:58 +0000 |
commit | c66468d7a202d6a013fbfb294872374463937455 (patch) | |
tree | 36ac0d4f0de03f0985d96b6c6abb044d9e926fc2 /cpp/test/Ice/exceptions/TestI.cpp | |
parent | endpoint selection fixes (diff) | |
download | ice-c66468d7a202d6a013fbfb294872374463937455.tar.bz2 ice-c66468d7a202d6a013fbfb294872374463937455.tar.xz ice-c66468d7a202d6a013fbfb294872374463937455.zip |
streamlined object adpater
Diffstat (limited to 'cpp/test/Ice/exceptions/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/TestI.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/cpp/test/Ice/exceptions/TestI.cpp b/cpp/test/Ice/exceptions/TestI.cpp index 53ce1565f13..78c415a85c9 100644 --- a/cpp/test/Ice/exceptions/TestI.cpp +++ b/cpp/test/Ice/exceptions/TestI.cpp @@ -14,17 +14,9 @@ ThrowerI::ThrowerI(const Ice::ObjectAdapterPtr& adapter) : _adapter(adapter) { - APtr a = new A; - _adapter->addTemporary(a); - _a = APrx::uncheckedCast(_adapter->objectToProxy(a)); - - BPtr b = new B; - _adapter->addTemporary(b); - _b = BPrx::uncheckedCast(_adapter->objectToProxy(b)); - - CPtr c = new C; - _adapter->addTemporary(c); - _c = CPrx::uncheckedCast(_adapter->objectToProxy(c)); + _a = APrx::uncheckedCast(_adapter->addTemporary(new A)); + _b = BPrx::uncheckedCast(_adapter->addTemporary(new B)); + _c = CPrx::uncheckedCast(_adapter->addTemporary(new C)); } void |