Utils: Make FilePath::mapToDevicePath() private

User code is supposed to use .onDevice(...).

Change-Id: Ia14198bbd472db05f5177f06f832dfc468415ba1
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-10-27 15:12:21 +02:00
parent c4ba0c2021
commit 5d190fcfaa

View File

@@ -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;