forked from qt-creator/qt-creator
Use Utils::FileName for various bits in QtVersion
Change-Id: I3afc3a4f2e0dd2671279c2d071779f1d7b277849 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -530,11 +530,24 @@ FileName FileName::relativeChildPath(const FileName &parent) const
|
||||
}
|
||||
|
||||
/// Appends \a s, ensuring a / between the parts
|
||||
void FileName::appendPath(const QString &s)
|
||||
FileName &FileName::appendPath(const QString &s)
|
||||
{
|
||||
if (QString::endsWith(QLatin1Char('/')))
|
||||
append(QLatin1Char('/'));
|
||||
append(s);
|
||||
return *this;
|
||||
}
|
||||
|
||||
FileName &FileName::append(const QString &str)
|
||||
{
|
||||
QString::append(str);
|
||||
return *this;
|
||||
}
|
||||
|
||||
FileName &FileName::append(QChar str)
|
||||
{
|
||||
QString::append(str);
|
||||
return *this;
|
||||
}
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
Reference in New Issue
Block a user