diff options
Diffstat (limited to 'cpp/common')
-rw-r--r-- | cpp/common/framing/inc/AMQContentBody.h | 2 | ||||
-rw-r--r-- | cpp/common/framing/src/AMQContentBody.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/common/framing/inc/AMQContentBody.h b/cpp/common/framing/inc/AMQContentBody.h index 1a6f2cf117..daf7d6cd44 100644 --- a/cpp/common/framing/inc/AMQContentBody.h +++ b/cpp/common/framing/inc/AMQContentBody.h @@ -33,7 +33,7 @@ public: typedef std::tr1::shared_ptr<AMQContentBody> shared_ptr; AMQContentBody(); - AMQContentBody(string& data); + AMQContentBody(const string& data); inline virtual ~AMQContentBody(){} inline u_int8_t type() const { return CONTENT_BODY; }; inline string& getData(){ return data; } diff --git a/cpp/common/framing/src/AMQContentBody.cpp b/cpp/common/framing/src/AMQContentBody.cpp index a9ee190ba8..6bc588c3ab 100644 --- a/cpp/common/framing/src/AMQContentBody.cpp +++ b/cpp/common/framing/src/AMQContentBody.cpp @@ -21,7 +21,7 @@ qpid::framing::AMQContentBody::AMQContentBody(){ } -qpid::framing::AMQContentBody::AMQContentBody(string& _data) : data(_data){ +qpid::framing::AMQContentBody::AMQContentBody(const string& _data) : data(_data){ } u_int32_t qpid::framing::AMQContentBody::size() const{ |