diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-05 19:13:16 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-05 19:13:16 +0000 |
commit | 29f5d8c468d89715be66f3f99c0f444452a14176 (patch) | |
tree | 69dd25f91b7b73cc0ff48d7ceec0f89efe875926 /cpp/demo/IceStorm/clock/Subscriber.cpp | |
parent | bug fixes (diff) | |
download | ice-29f5d8c468d89715be66f3f99c0f444452a14176.tar.bz2 ice-29f5d8c468d89715be66f3f99c0f444452a14176.tar.xz ice-29f5d8c468d89715be66f3f99c0f444452a14176.zip |
Ice::Identity
Diffstat (limited to 'cpp/demo/IceStorm/clock/Subscriber.cpp')
-rw-r--r-- | cpp/demo/IceStorm/clock/Subscriber.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpp/demo/IceStorm/clock/Subscriber.cpp b/cpp/demo/IceStorm/clock/Subscriber.cpp index 859a21b17dc..6e817f3da11 100644 --- a/cpp/demo/IceStorm/clock/Subscriber.cpp +++ b/cpp/demo/IceStorm/clock/Subscriber.cpp @@ -52,10 +52,7 @@ Subscriber::run(int argc, char* argv[]) Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints("ClockAdapter", "tcp"); Ice::ObjectPtr clock = new ClockI(); - const char* id = "events#time"; - adapter->add(clock, id); - - Ice::ObjectPrx object = adapter->createProxy(id); + Ice::ObjectPrx object = adapter->add(clock, Ice::stringToIdentity("events#time")); // // The set of topics to which to subscribe |