Details
Description
After the 4.7 changes in QIODevice check if peek() needs to be optimized. Right now it is implemented by using ungetChar() in a loop.
qint64 QIODevice::peek(char *data, qint64 maxSize) { qint64 readBytes = read(data, maxSize); int i = readBytes; while (i > 0) ungetChar(data[i-- - 1]); return readBytes; }