Fix #2125749 [calibre-8.11.0/src/calibre/srv/fast_css_transform.cpp:746: little performance problem ?](https://bugs.launchpad.net/calibre/+bug/2125749)

This commit is contained in:
Kovid Goyal 2025-09-26 16:17:47 +05:30
parent 6676320fe3
commit a5fbde7f25
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -743,7 +743,7 @@ class TokenQueue {
if (changed && queue.size()) {
const size_t pos = queue[0].get_output_position();
out.resize(pos ? pos - 1: 0);
for (auto tok : queue) tok.serialize(out);
for (auto & tok : queue) tok.serialize(out);
}
return_tokens_to_pool();
}