Skip to content
Snippets Groups Projects
Commit d2c515ba authored by Robert Butora's avatar Robert Butora
Browse files

works around a warning from protobuf: ByteSize() deprecated use ByteSizeLong()...

works around a warning from protobuf: ByteSize() deprecated use ByteSizeLong() (Note downcast: protobuf SerializeToArray() still uses int)
parent 0a574fcc
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,7 @@ void PlainSession::startWriteResponse() ...@@ -127,7 +127,7 @@ void PlainSession::startWriteResponse()
ResponseSP response_sp = m_protocolManager_sp->prepareResponse(request_sp); ResponseSP response_sp = m_protocolManager_sp->prepareResponse(request_sp);
boost::uint32_t bodySize = response_sp->ByteSize(); boost::uint32_t bodySize = response_sp->ByteSizeLong();
std::vector<boost::uint8_t> writeBuff; std::vector<boost::uint8_t> writeBuff;
writeBuff.resize(HEADER_SIZE + bodySize); writeBuff.resize(HEADER_SIZE + bodySize);
......
...@@ -163,7 +163,7 @@ void SSLSession::startWriteResponse() ...@@ -163,7 +163,7 @@ void SSLSession::startWriteResponse()
ResponseSP response_sp = m_protocolManager_sp->prepareResponse(request_sp); ResponseSP response_sp = m_protocolManager_sp->prepareResponse(request_sp);
boost::uint32_t bodySize = response_sp->ByteSize(); boost::uint32_t bodySize = response_sp->ByteSizeLong();
std::vector<boost::uint8_t> writeBuff; std::vector<boost::uint8_t> writeBuff;
writeBuff.resize(HEADER_SIZE + bodySize); writeBuff.resize(HEADER_SIZE + bodySize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment