diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-04-11 16:50:12 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-04-11 16:50:12 +0000 |
commit | 104f1f6429ce727857f33a9726e81de82cfd1db5 (patch) | |
tree | 19b6314689a38d24f8deb9584ebd0a00d9e3c0a1 /cpp/demo/IceStorm/clock/Publisher.cpp | |
parent | Fixed but in semantic checks: test for whether an introduced identifier has (diff) | |
download | ice-104f1f6429ce727857f33a9726e81de82cfd1db5.tar.bz2 ice-104f1f6429ce727857f33a9726e81de82cfd1db5.tar.xz ice-104f1f6429ce727857f33a9726e81de82cfd1db5.zip |
removing type attribute from IceStorm topic
Diffstat (limited to 'cpp/demo/IceStorm/clock/Publisher.cpp')
-rw-r--r-- | cpp/demo/IceStorm/clock/Publisher.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/demo/IceStorm/clock/Publisher.cpp b/cpp/demo/IceStorm/clock/Publisher.cpp index 26c454e7dd3..a98491ae54c 100644 --- a/cpp/demo/IceStorm/clock/Publisher.cpp +++ b/cpp/demo/IceStorm/clock/Publisher.cpp @@ -75,8 +75,11 @@ Publisher::run(int argc, char* argv[]) // reasons). // Ice::ObjectPrx obj = topic->getPublisher(); - assert(obj->ice_isA(Clock::ice_staticId())); - ClockPrx clock = ClockPrx::uncheckedCast(obj->ice_oneway()); + if(!obj->ice_isDatagram()) + { + obj = obj->ice_oneway(); + } + ClockPrx clock = ClockPrx::uncheckedCast(obj); cout << "publishing 10 tick events" << endl; for(int i = 0; i < 10; ++i) |