MessageQueue: avoid allocation of unnecessary temporary strings

Change-Id: I9162407020d84d0c92c9d1c6dfab806c67f3b873
This commit is contained in:
Miklos Vajna 2016-09-13 08:41:51 +02:00
parent c56888159a
commit 74a29c4ee4

View file

@ -120,7 +120,7 @@ void TileQueue::put_impl(const Payload& value)
Log::error(std::to_string(i) + ": " + oldMsg);
if (newMsg == oldMsg)
{
Log::trace("Replacing duplicate tile: " + oldMsg + " -> " + newMsg);
Log::trace() << "Replacing duplicate tile: " << oldMsg << " -> " << newMsg << Log::end;
_queue[i] = value;
return;
}