diff options
author | Ted Ross <tross@apache.org> | 2009-04-24 16:35:59 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-04-24 16:35:59 +0000 |
commit | 69cc57051a56a9c80d599a9d3a2e286f62c2fb8a (patch) | |
tree | 59eb7503c76706983c9563c5c23ae6b61834e696 /cpp/src | |
parent | 3c95f9a289fee6a3b43608ec2ac95f841c43e3ff (diff) | |
download | qpid-python-69cc57051a56a9c80d599a9d3a2e286f62c2fb8a.tar.gz |
Added missing const clause for putBin128.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@768355 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/framing/Buffer.cpp | 2 | ||||
-rw-r--r-- | cpp/src/qpid/framing/Buffer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/framing/Buffer.cpp b/cpp/src/qpid/framing/Buffer.cpp index a90c3a2e64..6f1ad52e4a 100644 --- a/cpp/src/qpid/framing/Buffer.cpp +++ b/cpp/src/qpid/framing/Buffer.cpp @@ -114,7 +114,7 @@ void Buffer::putDouble(double f){ putLongLong (val.i); } -void Buffer::putBin128(uint8_t* b){ +void Buffer::putBin128(const uint8_t* b){ memcpy (data + position, b, 16); position += 16; } diff --git a/cpp/src/qpid/framing/Buffer.h b/cpp/src/qpid/framing/Buffer.h index 57fb1e32a0..75d38519cb 100644 --- a/cpp/src/qpid/framing/Buffer.h +++ b/cpp/src/qpid/framing/Buffer.h @@ -89,7 +89,7 @@ class Buffer QPID_COMMON_EXTERN void putInt64(int64_t i); QPID_COMMON_EXTERN void putFloat(float f); QPID_COMMON_EXTERN void putDouble(double f); - QPID_COMMON_EXTERN void putBin128(uint8_t* b); + QPID_COMMON_EXTERN void putBin128(const uint8_t* b); QPID_COMMON_EXTERN uint8_t getOctet(); QPID_COMMON_EXTERN uint16_t getShort(); |