[Qt-interest] performance issue
Thiago Macieira
thiago at kde.org
Mon Jan 4 20:41:49 CET 2010
Em Segunda-feira 4. Janeiro 2010, às 19.59.47, jjDaNiMoTh escreveu:
> 2010/1/4 João Abecasis <joao at trolltech.com>:
> > The line-break is included on "empty" lines, so that isEmpty will return
> > false; line will be empty when the end of device is reached and there's
> > nothing left to read.
>
> No, it's wrong, because if you have a empty line on that file,
> .isEmpty() will return true.
You missed João's point: the line-break is included on empty lines, so
line.isEmpty() returns false.
QString("\n").isEmpty() == false
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100104/1586881a/attachment.bin
More information about the Qt-interest-old
mailing list