Replace a semicolon with {} as loop body

It's what our coding style says we should use, and I'd been confused
because I didn't initially spot that semicolon.

Change-Id: I0eadc53e176776fe6aac8568709aa7b995a10ac9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io>
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
This commit is contained in:
Edward Welbourne 2025-04-07 16:30:55 +02:00
parent 2ea404f34c
commit 1fc5f5b088

View File

@ -513,7 +513,7 @@ QString QTextStreamPrivate::read(qsizetype maxlen)
lastTokenSize = qMin(maxlen, string->size() - stringOffset);
ret = string->mid(stringOffset, lastTokenSize);
} else {
while (readBuffer.size() - readBufferOffset < maxlen && fillReadBuffer()) ;
while (readBuffer.size() - readBufferOffset < maxlen && fillReadBuffer()) {}
lastTokenSize = qMin(maxlen, readBuffer.size() - readBufferOffset);
ret = readBuffer.mid(readBufferOffset, lastTokenSize);
}