diff options
author | David Faure <david.faure@kdab.com> | 2014-02-07 14:16:19 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-10 11:00:41 +0100 |
commit | 4965cf78c1d9800944cec53babcf6be1cadf5940 (patch) | |
tree | 543133df1edc32378c3d52e5646e7fb6f77aed4e | |
parent | 36af7fe678f41bbff2598b1e681a4a02ec3e2291 (diff) |
QDir::tempPath: clarify trailing-slash situation.
tst_QDir::tempPath already checks that there is no trailing slash.
Except of course when the path is "/" or "C:/", but we can't do much
about that unlikely corner case.
Change-Id: If71d5de1aeebc6720348cecbf659b7fceb83fb0e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r-- | src/corelib/io/qdir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index b704126efa..797dbbc0ec 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -1944,8 +1944,8 @@ QString QDir::homePath() On Unix/Linux systems this is the path in the \c TMPDIR environment variable or \c{/tmp} if \c TMPDIR is not defined. On Windows this is usually the path in the \c TEMP or \c TMP environment - variable. Whether a directory separator is added to the end or - not, depends on the operating system. + variable. + The path returned by this method doesn't end with a directory separator. \sa temp(), currentPath(), homePath(), rootPath() */ |