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/demo/Ice/value/ValueI.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/demo/Ice/value/ValueI.cpp')
-rw-r--r-- | cpp/demo/Ice/value/ValueI.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/demo/Ice/value/ValueI.cpp b/cpp/demo/Ice/value/ValueI.cpp index f3776cbb877..08b2f27fd98 100644 --- a/cpp/demo/Ice/value/ValueI.cpp +++ b/cpp/demo/Ice/value/ValueI.cpp @@ -21,8 +21,7 @@ InitialI::InitialI(const Ice::ObjectAdapterPtr& adapter) : _printer = new PrinterI; _printer->_message = "Ice rulez!"; - adapter->addTemporary(_printer); - _printerProxy = PrinterPrx::uncheckedCast(adapter->objectToProxy(_printer)); + _printerProxy = PrinterPrx::uncheckedCast(adapter->addTemporary(_printer)); _derivedPrinter = new DerivedPrinterI; _derivedPrinter->_message = _printer->_message; |