more using .empty()

This commit is contained in:
Erik Frojdh
2020-06-29 17:41:06 +02:00
parent 19e40cf0e6
commit cec26f81e1
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ int ZmqSocket::SendHeader(int index, zmqHeader header) {
// additional stuff
header.flippedDataX, header.quad);
if (header.addJsonHeader.size() > 0) {
if (!header.addJsonHeader.empty()) {
strcat(header_buffer.get(), ", ");
strcat(header_buffer.get(), "\"addJsonHeader\": {");
for (auto it = header.addJsonHeader.begin();