diff options
Diffstat (limited to 'cpp/src/qpid/cluster/Event.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Event.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/cluster/Event.cpp b/cpp/src/qpid/cluster/Event.cpp index 1cb010c266..52ea84b02b 100644 --- a/cpp/src/qpid/cluster/Event.cpp +++ b/cpp/src/qpid/cluster/Event.cpp @@ -87,7 +87,7 @@ Event Event::control(const framing::AMQBody& body, const ConnectionId& cid) { return control(framing::AMQFrame(body), cid); } -iovec Event::toIovec() { +iovec Event::toIovec() const { encodeHeader(); iovec iov = { const_cast<char*>(getStore()), getStoreSize() }; return iov; @@ -103,8 +103,8 @@ void EventHeader::encode(Buffer& b) const { } // Encode my header in my buffer. -void Event::encodeHeader () { - Buffer b(getStore(), HEADER_SIZE); +void Event::encodeHeader () const { + Buffer b(const_cast<char*>(getStore()), HEADER_SIZE); encode(b); assert(b.getPosition() == HEADER_SIZE); } |