copy ctor for packagemetadata

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878838
This commit is contained in:
Aaron J. Seigo 2008-11-01 21:40:20 +00:00
parent 416090f5da
commit 6b1c0f6c91
2 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,11 @@ PackageMetadata::PackageMetadata()
{
}
PackageMetadata::PackageMetadata(const PackageMetadata &other)
: d(new PackageMetadataPrivate(*other.d))
{
}
PackageMetadata::PackageMetadata(const QString &path)
: d(new PackageMetadataPrivate)
{

View File

@ -42,6 +42,11 @@ public:
**/
PackageMetadata();
/**
* Copy constructor
**/
PackageMetadata(const PackageMetadata &other);
/**
* Constructs a metadata object using the values in the file at path
*