diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-01-08 15:36:59 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-01-08 15:36:59 +0000 |
commit | a16ef132ba1b383d3d2bf573c118a21c653d9229 (patch) | |
tree | eb773fbab75a8fa85e55f947b7afd89f9b8ef811 /cpp/src/IceStorm/Subscriber.cpp | |
parent | Fixed windows build error (diff) | |
download | ice-a16ef132ba1b383d3d2bf573c118a21c653d9229.tar.bz2 ice-a16ef132ba1b383d3d2bf573c118a21c653d9229.tar.xz ice-a16ef132ba1b383d3d2bf573c118a21c653d9229.zip |
Borland fixes
Diffstat (limited to 'cpp/src/IceStorm/Subscriber.cpp')
-rw-r--r-- | cpp/src/IceStorm/Subscriber.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/cpp/src/IceStorm/Subscriber.cpp b/cpp/src/IceStorm/Subscriber.cpp index 70b626ce441..3fff970623f 100644 --- a/cpp/src/IceStorm/Subscriber.cpp +++ b/cpp/src/IceStorm/Subscriber.cpp @@ -110,7 +110,7 @@ private: const bool _batch; const Ice::ObjectPrx _obj; - const Ice::ObjectPrx _objBatch; + /*const*/ Ice::ObjectPrx _objBatch; }; class SubscriberTwoway : public Subscriber @@ -182,9 +182,20 @@ SubscriberOneway::SubscriberOneway( bool batch) : Subscriber(instance, proxy, false, obj->ice_getIdentity()), _batch(batch), - _obj(obj), - _objBatch(obj->ice_isDatagram() ? obj->ice_batchDatagram() : obj->ice_batchOneway()) + _obj(obj) { + // + // COMPILERFIX: Initialized this way for Borland to compile. + // + if(obj->ice_isDatagram()) + { + _objBatch = obj->ice_batchDatagram(); + } + else + { + _objBatch = obj->ice_batchOneway(); + } + if(batch) { _instance->batchFlusher()->add(_obj); |