summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/value/ValueI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-09 07:05:32 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-09 07:05:32 +0000
commitd9e37798719846dd6ea7f25fcc4eb053db2c2efe (patch)
tree04dc91fdacae69db9adb3ba8c8d0872a7243662d /cpp/demo/Ice/value/ValueI.cpp
parentFirst saving support (diff)
downloadice-d9e37798719846dd6ea7f25fcc4eb053db2c2efe.tar.bz2
ice-d9e37798719846dd6ea7f25fcc4eb053db2c2efe.tar.xz
ice-d9e37798719846dd6ea7f25fcc4eb053db2c2efe.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=335
Diffstat (limited to 'cpp/demo/Ice/value/ValueI.cpp')
-rw-r--r--cpp/demo/Ice/value/ValueI.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/cpp/demo/Ice/value/ValueI.cpp b/cpp/demo/Ice/value/ValueI.cpp
index eef680edab9..763aaaa4fe6 100644
--- a/cpp/demo/Ice/value/ValueI.cpp
+++ b/cpp/demo/Ice/value/ValueI.cpp
@@ -13,19 +13,16 @@
using namespace std;
using namespace Demo;
-InitialI::InitialI(::Ice::ObjectAdapterPtr adapter)
+InitialI::InitialI(const Ice::ObjectAdapterPtr& adapter) :
+ _simple(new Simple),
+ _printer(new PrinterI),
+ _printerProxy(PrinterPrx::uncheckedCast(adapter->addWithUUID(_printer))),
+ _derivedPrinter(new DerivedPrinterI)
{
- _simple = new Simple;
_simple->message = "a message 4 u";
-
- _printer = new PrinterI;
_printer->message = "Ice rulez!";
- _printerProxy = PrinterPrx::uncheckedCast(adapter->addWithUUID(_printer));
-
- _derivedPrinter = new DerivedPrinterI;
_derivedPrinter->message = _printer->message;
_derivedPrinter->derivedMessage = "a derived message 4 u";
- adapter->addWithUUID(_derivedPrinter);
}
SimplePtr