mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Improved string concat to avoid "//" in paths
This commit is contained in:
committed by
Mat Sutcliffe
parent
fa8eed1611
commit
458daa4532
@@ -53,8 +53,8 @@ namespace BlackMisc
|
||||
|
||||
QString CUrl::appendPath(const QString &pathToAppend)
|
||||
{
|
||||
QString p(getPath());
|
||||
p = p.append("/").append(pathToAppend.trimmed()).replace("//", "/");
|
||||
if (pathToAppend.isEmpty()) { return m_path; }
|
||||
const QString p = CFileUtils::appendFilePaths(this->getPath(), pathToAppend);
|
||||
this->setPath(p);
|
||||
return m_path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user