mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: fix build with QStringBuilder disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
aceeceb7e4
commit
54a5dd55b5
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -551,7 +551,7 @@ void PackageStructure::setContentsPrefixPaths(const QStringList &prefixPaths)
|
|||
it.next();
|
||||
|
||||
if (!it.value().endsWith('/')) {
|
||||
it.setValue(it.value() % '/');
|
||||
it.setValue(it.value() + '/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue