plasma: fix build with QStringBuilder disabled

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-04-06 08:45:42 +00:00
parent aceeceb7e4
commit 54a5dd55b5
2 changed files with 3 additions and 3 deletions

View file

@ -616,7 +616,7 @@ PackagePrivate::PackagePrivate(const PackageStructure::Ptr st, const QString &pa
: structure(st),
service(0)
{
setPathFromStructure(packageRoot.isEmpty() ? path : packageRoot % "/" % path);
setPathFromStructure(packageRoot.isEmpty() ? path : packageRoot + "/" + path);
}
PackagePrivate::PackagePrivate(const PackagePrivate &other)
@ -649,7 +649,7 @@ void PackagePrivate::setPathFromStructure(const QString &path)
if (path.isEmpty()) {
paths << structure->defaultPackageRoot();
} else if (QDir::isRelativePath(path)) {
QString p = structure->defaultPackageRoot() % "/" % path % "/";
QString p = structure->defaultPackageRoot() + "/" + path + "/";
if (QDir::isRelativePath(p)) {
paths = KGlobal::dirs()->findDirs("data", p);

View file

@ -551,7 +551,7 @@ void PackageStructure::setContentsPrefixPaths(const QStringList &prefixPaths)
it.next();
if (!it.value().endsWith('/')) {
it.setValue(it.value() % '/');
it.setValue(it.value() + '/');
}
}
}