summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Subscriber.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-01-08 15:36:59 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-01-08 15:36:59 +0000
commita16ef132ba1b383d3d2bf573c118a21c653d9229 (patch)
treeeb773fbab75a8fa85e55f947b7afd89f9b8ef811 /cpp/src/IceStorm/Subscriber.cpp
parentFixed windows build error (diff)
downloadice-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.cpp17
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);