From 6b1c0f6c9183b3a0769c01aa2c9c77f8ed48c3af Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 1 Nov 2008 21:40:20 +0000 Subject: [PATCH] copy ctor for packagemetadata svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878838 --- packagemetadata.cpp | 5 +++++ packagemetadata.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/packagemetadata.cpp b/packagemetadata.cpp index 0544048b4..dd8256021 100644 --- a/packagemetadata.cpp +++ b/packagemetadata.cpp @@ -56,6 +56,11 @@ PackageMetadata::PackageMetadata() { } +PackageMetadata::PackageMetadata(const PackageMetadata &other) + : d(new PackageMetadataPrivate(*other.d)) +{ +} + PackageMetadata::PackageMetadata(const QString &path) : d(new PackageMetadataPrivate) { diff --git a/packagemetadata.h b/packagemetadata.h index bc33c5397..d3bc419e8 100644 --- a/packagemetadata.h +++ b/packagemetadata.h @@ -42,6 +42,11 @@ public: **/ PackageMetadata(); + /** + * Copy constructor + **/ + PackageMetadata(const PackageMetadata &other); + /** * Constructs a metadata object using the values in the file at path *