summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-05-20 18:13:51 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-05-22 12:33:43 (GMT)
commit70f616238e77d866420f2c6e12afe04b529fe808 (patch)
tree8e7de17f839754cf13768ec5affb33414b3a5496 /src/corelib/io
parentcfa01206e38d120c0ddb17aec7358aadff30b6f5 (diff)
downloadQt-70f616238e77d866420f2c6e12afe04b529fe808.zip
Qt-70f616238e77d866420f2c6e12afe04b529fe808.tar.gz
Qt-70f616238e77d866420f2c6e12afe04b529fe808.tar.bz2
Documentation fix
We souldn't be returning an empty string for the fileName, just because the file is closed. E.g., after a rename, the file will be closed, but should still have a name. Reviewed-by: Thiago
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qtemporaryfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp
index 11e88e2..e83d7e9 100644
--- a/src/corelib/io/qtemporaryfile.cpp
+++ b/src/corelib/io/qtemporaryfile.cpp
@@ -432,8 +432,8 @@ QTemporaryFilePrivate::~QTemporaryFilePrivate()
file will exist and be kept open internally by QTemporaryFile.
The file name of the temporary file can be found by calling fileName().
- Note that this is only defined while the file is open; the function returns
- an empty string before the file is opened and after it is closed.
+ Note that this is only defined after the file is first opened; the function
+ returns an empty string before this.
A temporary file will have some static part of the name and some
part that is calculated to be unique. The default filename \c