use const iterators

This commit is contained in:
Benjamin Sergeant 2020-07-08 10:34:14 -07:00
parent 543c2086b2
commit d5e51840ab

View File

@ -766,8 +766,8 @@ namespace ix
size_t wireSize = message.size(); size_t wireSize = message.size();
bool compressionError = false; bool compressionError = false;
auto message_begin = message.begin(); auto message_begin = message.cbegin();
auto message_end = message.end(); auto message_end = message.cend();
if (compress) if (compress)
{ {
@ -782,8 +782,8 @@ namespace ix
compressionError = false; compressionError = false;
wireSize = _compressedMessage.size(); wireSize = _compressedMessage.size();
message_begin = _compressedMessage.begin(); message_begin = _compressedMessage.cbegin();
message_end = _compressedMessage.end(); message_end = _compressedMessage.cend();
} }
{ {