FilePath: Fix for operator+(QString)

Change-Id: I3b9889c8b2cdc8a9d1bf94c3e7a8627e2ff2ac35
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-08-10 15:04:46 +02:00
parent aeb33310cb
commit cd919e6f61
2 changed files with 21 additions and 3 deletions

View File

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