Replaced C-casts with const_cast for Envelope::body_
This commit is contained in:
parent
6389795d47
commit
539128e559
|
|
@ -56,7 +56,7 @@ public:
|
||||||
* @param body
|
* @param body
|
||||||
* @param size
|
* @param size
|
||||||
*/
|
*/
|
||||||
Envelope(const char *body, uint64_t size) : MetaData(), _body((char *)body), _bodySize(size) {}
|
Envelope(const char *body, uint64_t size) : MetaData(), _body(const_cast<char *>(body)), _bodySize(size) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disabled copy constructor
|
* Disabled copy constructor
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ protected:
|
||||||
{
|
{
|
||||||
// we do not have to combine multiple frames, so we can store
|
// we do not have to combine multiple frames, so we can store
|
||||||
// the buffer pointer in the message
|
// the buffer pointer in the message
|
||||||
_body = (char *)buffer;
|
_body = const_cast<char *>(buffer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue