Allow renaming QTemporaryFiles on windows
commitf1e9c0f3d22d611bfaa14c30a34e6042500a0cb8
authorJoão Abecasis <joao@abecasis.name>
Wed, 15 Apr 2009 12:24:43 +0000 (15 14:24 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 22 May 2009 12:33:39 +0000 (22 14:33 +0200)
tree43f3176a2b0034ea8059502dfb5fce209eac6191
parent562adecf4f938f593674f03b425a79b89e238518
Allow renaming QTemporaryFiles on windows

Changed the fallback implementation to use 'this' instead of a new
QFile. This allows a QTemporaryFile to be block-copied to the
destination and the source to be removed (QTemporaryFile is special
because it isn't really closed).

Reviewed-by: Peter Hartmann
Reviewed-by: Thiago
src/corelib/io/qfile.cpp