Merge pull request #209 from theirix/fix-const_cast
Replaced C-casts with const_cast for Envelope::body_
This commit is contained in:
commit
76144088cb
|
|
@ -56,7 +56,7 @@ public:
|
|||
* @param body
|
||||
* @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
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ protected:
|
|||
{
|
||||
// we do not have to combine multiple frames, so we can store
|
||||
// the buffer pointer in the message
|
||||
_body = (char *)buffer;
|
||||
_body = const_cast<char *>(buffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue