Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-12-16 15:56:26 +0300
committerHannah von Reth <vonreth@kde.org>2021-12-16 17:49:05 +0300
commite1e259679009dc28b5ffc4c924c787ce31fe0e17 (patch)
tree6d54655553a411d449d5e8ee60f08e7f3b0bb2ca /src/common
parent41ed35e2db3de4d751bb60c08ee8961f286d0a6f (diff)
Use faster `QFileInfo::exists`
Diffstat (limited to 'src/common')
-rw-r--r--src/common/filesystembase.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp
index d349d31de..426aefa68 100644
--- a/src/common/filesystembase.cpp
+++ b/src/common/filesystembase.cpp
@@ -330,8 +330,7 @@ bool FileSystem::fileExists(const QString &filename, const QFileInfo &fileInfo)
// not valid. There needs to be one initialised here. Otherwise the incoming
// fileInfo is re-used.
if (fileInfo.filePath() != filename) {
- QFileInfo myFI(filename);
- re = myFI.exists();
+ re = QFileInfo::exists(filename);
}
return re;
}