diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2010-03-11 13:03:14 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2010-03-11 13:04:48 (GMT) |
commit | aa351766d6cecd6cad43cb40596d3ae9166a9647 (patch) | |
tree | 7bcf2b346b8d8a07c7074fb452ae23d1221f2b2c /src/gui/kernel | |
parent | bf521a9a5d7670944658e93fe462c72f800a04f1 (diff) | |
download | Qt-aa351766d6cecd6cad43cb40596d3ae9166a9647.zip Qt-aa351766d6cecd6cad43cb40596d3ae9166a9647.tar.gz Qt-aa351766d6cecd6cad43cb40596d3ae9166a9647.tar.bz2 |
Avoid unnecessary memory allocation in the jpeg handler's image detection
The handler calls peek with 2 bytes to inspect the first two bytes. Instead
of calling the overload of peek() that returns a new QByteArray with just
two bytes, allocate 2 bytes on the stack and call the overload of peek()
that writes into the specified buffer.
Reviewed-by: Joao
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions