Replaced C-casts with const_cast for Envelope::body_

This commit is contained in:
theirix 2018-04-18 14:59:35 +03:00
parent 6389795d47
commit 539128e559
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
{