Utils: Make FileName::canonicalPath a member

Change-Id: I8d7450dec5c4c14ae3e007d1d66f1a9c3c98f807
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-05-17 13:44:09 +02:00
parent 22cd81ffbc
commit 36daca80f3
5 changed files with 12 additions and 13 deletions

View File

@@ -102,6 +102,8 @@ public:
FileName pathAppended(const QString &str) const;
FileName stringAppended(const QString &str) const;
FileName canonicalPath() const;
void clear() { m_data.clear(); }
bool isEmpty() const { return m_data.isEmpty(); }
@@ -129,7 +131,6 @@ public:
const std::function<bool (QFileInfo, QFileInfo, QString *)> &copyHelper = nullptr);
static bool isFileNewerThan(const FileName &filePath, const QDateTime &timeStamp);
static FileName resolveSymlinks(const FileName &path);
static FileName canonicalPath(const FileName &path);
static QString shortNativePath(const FileName &path);
static QString fileSystemFriendlyName(const QString &name);
static int indexOfQmakeUnfriendly(const QString &name, int startpos = 0);