diff options
author | Oleksii Lysenko <lysenkoalexmail@gmail.com> | 2021-06-21 21:48:59 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-06-24 11:23:54 +0300 |
commit | df0c49f8849b06098f4d5155858bb4bf5cfc8071 (patch) | |
tree | c58406bcdc6f33dc3b0116791760c9ba69d87ca0 /src/common | |
parent | 5842250dbb7bbb8f8e23054b12e5c88cbc736a64 (diff) |
Removed unused variable warning
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/vfs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/vfs.cpp b/src/common/vfs.cpp index 42de8b4ac..066a36c5c 100644 --- a/src/common/vfs.cpp +++ b/src/common/vfs.cpp @@ -65,8 +65,8 @@ Optional<Vfs::Mode> Vfs::modeFromString(const QString &str) Result<bool, QString> Vfs::checkAvailability(const QString &path) { - const auto mode = bestAvailableVfsMode(); #ifdef Q_OS_WIN + const auto mode = bestAvailableVfsMode(); if (mode == Mode::WindowsCfApi) { const auto info = QFileInfo(path); if (QDir(info.canonicalFilePath()).isRoot()) { |