qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r1485510 - /qpid/trunk/qpid/cpp/include/qpid/framing/Buffer.h
Date Wed, 22 May 2013 23:52:05 GMT
Author: aconway
Date: Wed May 22 23:52:05 2013
New Revision: 1485510

URL: http://svn.apache.org/r1485510
Log:
NO-JIRA: Added missing const qualifiers to Buffer get functions.

Modified:
    qpid/trunk/qpid/cpp/include/qpid/framing/Buffer.h

Modified: qpid/trunk/qpid/cpp/include/qpid/framing/Buffer.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/framing/Buffer.h?rev=1485510&r1=1485509&r2=1485510&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/framing/Buffer.h (original)
+++ qpid/trunk/qpid/cpp/include/qpid/framing/Buffer.h Wed May 22 23:52:05 2013
@@ -51,10 +51,11 @@ class QPID_COMMON_CLASS_EXTERN Buffer
 
     QPID_COMMON_EXTERN void reset();
 
-    QPID_COMMON_INLINE_EXTERN uint32_t available() { return size - position; }
-    QPID_COMMON_INLINE_EXTERN uint32_t getSize() { return size; }
-    QPID_COMMON_INLINE_EXTERN uint32_t getPosition() { return position; }
+    QPID_COMMON_INLINE_EXTERN uint32_t available() const{ return size - position; }
+    QPID_COMMON_INLINE_EXTERN uint32_t getSize() const { return size; }
+    QPID_COMMON_INLINE_EXTERN uint32_t getPosition() const { return position; }
     QPID_COMMON_INLINE_EXTERN void setPosition(uint32_t p) { position = p; }
+    QPID_COMMON_INLINE_EXTERN const char * getPointer() const { return data; }
     QPID_COMMON_INLINE_EXTERN char* getPointer() { return data; }
 
     QPID_COMMON_EXTERN void putOctet(uint8_t i);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message