[Interest] QTemporaryFile::open(OpenMode flags) is protected, but not in documentation

Thiago Macieira thiago.macieira at intel.com
Thu Sep 26 06:45:02 CEST 2013


On quinta-feira, 26 de setembro de 2013 08:10:38, Constantin Makshin wrote:
> According to the Qt 4.8 source code on Gitorious, closing QTemporaryFile
> just sets the read-write pointer to the beginning of the file and
> [re]opening it enforces QIODevice::ReadWrite mode (line 82 of
> "src/corelib/io/qtemporaryfile.h" and line 318 of
> "src/corelib/io/qtemporaryfile.cpp") which doesn't truncate the file.

That's an optimisation detail.

Pretend like it really did truncate the file.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130925/9d24166a/attachment.sig>


More information about the Interest mailing list