package metadat by reference, not pointer, for API clarity and health
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878840
This commit is contained in:
parent
6b1c0f6c91
commit
1aa252d612
@ -177,13 +177,13 @@ QStringList Package::entryList(const char *fileType) const
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
const PackageMetadata *Package::metadata() const
|
||||
PackageMetadata Package::metadata() const
|
||||
{
|
||||
//FIXME: this only works for native plasma packges; should fall back to... PackageStructure?
|
||||
if (!d->metadata) {
|
||||
d->metadata = new PackageMetadata(d->basePath + "metadata.desktop");
|
||||
}
|
||||
return d->metadata;
|
||||
return *d->metadata;
|
||||
}
|
||||
|
||||
const QString Package::path() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user