QTemporaryFile: really close files before renaming
commitba706d2564f1181fa4cc596a46bb2a041c62c28f
authorJoão Abecasis <joao@abecasis.name>
Mon, 18 May 2009 11:08:04 +0000 (18 13:08 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 22 May 2009 12:33:47 +0000 (22 14:33 +0200)
treec2fda5fe83c047533e416d33f3042327018a6877
parent1044e75822270d702a3e9f14a87954321984c942
QTemporaryFile: really close files before renaming

This gets temporary file renaming working on Windows, without requiring
block-copying.

While we could #ifdef this behavior for Windows, it's preferrable to
maintain consistency in the exposed interface.

Reviewed-by: Thiago
src/corelib/io/qtemporaryfile.cpp