forked from qt-creator/qt-creator
Fix FileName::appendPath (and through that Qt abi detection on Mac)
appendPath was actually not ensuring a '/' between the parts, contrary to what it claimed. Change-Id: I80b703160fc05c099db9b461366c91a55525038b Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
This commit is contained in:
@@ -532,7 +532,7 @@ FileName FileName::relativeChildPath(const FileName &parent) const
|
||||
/// Appends \a s, ensuring a / between the parts
|
||||
FileName &FileName::appendPath(const QString &s)
|
||||
{
|
||||
if (QString::endsWith(QLatin1Char('/')))
|
||||
if (!QString::endsWith(QLatin1Char('/')))
|
||||
append(QLatin1Char('/'));
|
||||
append(s);
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user