From 5d190fcfaae117100b4d6cf733d17e878f5809db Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 27 Oct 2021 15:12:21 +0200 Subject: [PATCH] Utils: Make FilePath::mapToDevicePath() private User code is supposed to use .onDevice(...). Change-Id: Ia14198bbd472db05f5177f06f832dfc468415ba1 Reviewed-by: David Schulz --- src/libs/utils/filepath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/filepath.h b/src/libs/utils/filepath.h index a83c0aa5177..da5ca921bbc 100644 --- a/src/libs/utils/filepath.h +++ b/src/libs/utils/filepath.h @@ -163,7 +163,6 @@ public: QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags) const; [[nodiscard]] FilePath mapToGlobalPath() const; - [[nodiscard]] QString mapToDevicePath() const; // makes sure that capitalization of directories is canonical // on Windows and macOS. This is rarely needed. @@ -194,6 +193,7 @@ private: friend class ::tst_fileutils; static QString calcRelativePath(const QString &absolutePath, const QString &absoluteAnchorPath); void setFromString(const QString &filepath); + [[nodiscard]] QString mapToDevicePath() const; QString m_scheme; QString m_host;