Utils: Make FilePath::operator+() work with remote paths

Change-Id: I1f0963b4da8c000fa1ea709d358490cb8f986ee5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2021-05-19 10:35:44 +02:00
parent a71bb36682
commit 2e2d1835d1

View File

@@ -1043,7 +1043,9 @@ bool FilePath::operator>=(const FilePath &other) const
FilePath FilePath::operator+(const QString &s) const
{
return FilePath::fromString(m_data + s);
FilePath res = *this;
res.m_data += s;
return res;
}
/// \returns whether FilePath is a child of \a s