summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/EventFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/cluster/EventFrame.h')
-rw-r--r--cpp/src/qpid/cluster/EventFrame.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/EventFrame.h b/cpp/src/qpid/cluster/EventFrame.h
index ef3c38658b..abeea3ef16 100644
--- a/cpp/src/qpid/cluster/EventFrame.h
+++ b/cpp/src/qpid/cluster/EventFrame.h
@@ -42,8 +42,8 @@ struct EventFrame
EventFrame(const EventHeader& e, const framing::AMQFrame& f, int rc=0);
- bool isCluster() const { return !connectionId.getPointer(); }
- bool isConnection() const { return connectionId.getPointer(); }
+ bool isCluster() const { return connectionId.getNumber() == 0; }
+ bool isConnection() const { return connectionId.getNumber() != 0; }
bool isLastInEvent() const { return readCredit; }