diff options
author | Wang Fei <wangfeia@uniontech.com> | 2021-10-13 09:37:43 +0800 |
---|---|---|
committer | Wang Fei <wangfeia@uniontech.com> | 2021-11-03 00:42:50 +0800 |
commit | 62c2d990f90ec999de694c5ccf7c7e14d8965052 (patch) | |
tree | b9fe68fa1a2151c2317a47e3ab099439b88463bc /src/corelib/io/qtemporaryfile.cpp | |
parent | d39b5f376db85a18b163e31bd25a8c9dc4a5292c (diff) |
Rename LinkName to AbsoluteLinkTarget
The existing symLinkTarget() always resolves the symlink
target to an absolute path; It will be clearer to change
LinkName to AbsoluteLinkTarget. It is ready for the commit
about add symLinkPath() to read the raw link path.
Fixes: QTBUG-96761
Change-Id: I8da7e23b066c9ac1a16abb691aa1c4a5f1ff8361
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Wang Fei <wangfeia@uniontech.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/io/qtemporaryfile.cpp')
-rw-r--r-- | src/corelib/io/qtemporaryfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp index 54d7462883..5ccb959288 100644 --- a/src/corelib/io/qtemporaryfile.cpp +++ b/src/corelib/io/qtemporaryfile.cpp @@ -439,7 +439,7 @@ bool QTemporaryFileEngine::close() QString QTemporaryFileEngine::fileName(QAbstractFileEngine::FileName file) const { if (isUnnamedFile()) { - if (file == LinkName) { + if (file == AbsoluteLinkTarget) { // we know our file isn't (won't be) a symlink return QString(); } |