Commit 8b405bd4 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 26994dc5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ void PlainSession::startWriteResponse()

        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;
        writeBuff.resize(HEADER_SIZE + bodySize);
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ void SSLSession::startWriteResponse()

        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;
        writeBuff.resize(HEADER_SIZE + bodySize);