Utils: Replace mutating FileName::appendString

... by a non-mutating .stringAppended, doing the same.

Change-Id: I7adb6cae3415942cc9a80088bd75cda9d577d4a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-05-15 08:01:06 +02:00
parent 075d674c5a
commit f99d69ee43
8 changed files with 27 additions and 41 deletions

View File

@@ -855,16 +855,11 @@ FileName &FileName::appendPath(const QString &s)
return *this;
}
FileName &FileName::appendString(const QString &str)
FileName FileName::stringAppended(const QString &str) const
{
m_data.append(str);
return *this;
}
FileName &FileName::appendString(QChar str)
{
m_data.append(str);
return *this;
FileName fn = *this;
fn.m_data.append(str);
return fn;
}
uint FileName::hash(uint seed) const