diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-09-09 15:13:21 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-09-09 16:11:18 (GMT) |
commit | 87c150517b36ac89f17f2455494dc63fccdb5727 (patch) | |
tree | f22c896a9c19d7141dcb3b1a83fbbf81a06a1c2e | |
parent | 113a56eb0c88cdee3209dcf16af8bc51ccef080d (diff) | |
download | Qt-87c150517b36ac89f17f2455494dc63fccdb5727.zip Qt-87c150517b36ac89f17f2455494dc63fccdb5727.tar.gz Qt-87c150517b36ac89f17f2455494dc63fccdb5727.tar.bz2 |
Create QFileSystemEntry objects with / as directory separator
It simplifies the code for users of QFileSystemEntry to assume that
filePath() returns / seperated paths, and nativeFilePath returns
paths using the native dir separator (e.g. \)
Reviewed-By: joao
-rw-r--r-- | src/corelib/io/qfileinfo_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfileinfo_p.h b/src/corelib/io/qfileinfo_p.h index a97d4d3..6db84c4 100644 --- a/src/corelib/io/qfileinfo_p.h +++ b/src/corelib/io/qfileinfo_p.h @@ -90,7 +90,7 @@ public: cache_enabled(copy.cache_enabled), fileFlags(0), fileSize(0) {} inline QFileInfoPrivate(const QString &file) - : fileEntry(file), + : fileEntry(QDir::fromNativeSeparators(file)), fileEngine(QFileSystemEngine::resolveEntryAndCreateLegacyEngine(fileEntry, metaData)), cachedFlags(0), #ifndef QT_NO_FSFILEENGINE |