summaryrefslogtreecommitdiff
path: root/src/corelib/io/qfsfileengine_win.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-09-13 16:50:27 +0100
committerShane Kearns <shane.kearns@accenture.com>2010-09-15 11:29:15 +0100
commita4bd280f48b1508912ae50e28b47f0f74fd08c37 (patch)
tree67daebc0db0b00ae9c8ff1c0bda9c8357f728bc7 /src/corelib/io/qfsfileengine_win.cpp
parent0299d30d5aa35d532df6bc018afc52df263651a0 (diff)
downloadqt4-tools-a4bd280f48b1508912ae50e28b47f0f74fd08c37.tar.gz
Pass QFileSystemMetaData reference into QFileSystemEngine::canonicalName
On symbian, this allows us to use the cached ExistsAttribute On symbian and unix, this allows us to update the caller's knowledge of ExistsAttribute (potentially saving a stat later) Reviewed-By: joao
Diffstat (limited to 'src/corelib/io/qfsfileengine_win.cpp')
-rw-r--r--src/corelib/io/qfsfileengine_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp
index 976207a45a..2bf377a7fc 100644
--- a/src/corelib/io/qfsfileengine_win.cpp
+++ b/src/corelib/io/qfsfileengine_win.cpp
@@ -858,7 +858,7 @@ QString QFSFileEngine::fileName(FileName file) const
} else if (file == CanonicalName || file == CanonicalPathName) {
if (!(fileFlags(ExistsFlag) & ExistsFlag))
return QString();
- QFileSystemEntry entry(QFileSystemEngine::canonicalName(QFileSystemEntry(fileName(AbsoluteName))));
+ QFileSystemEntry entry(QFileSystemEngine::canonicalName(QFileSystemEntry(fileName(AbsoluteName)), d->metaData));
if (file == CanonicalPathName)
return entry.path();