summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 07:17:18 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 07:17:18 (GMT)
commitd4be704567161ca0627f696516d4cadb8009cb80 (patch)
tree79b160880abd04210dd7f90480f0c87837435053
parent4dd8521654878df803ad510fb88c98511a01508e (diff)
Use QObject as argumentv16.11.80
-rw-r--r--src/util/createresource.cpp3
-rw-r--r--src/util/createresource.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/util/createresource.cpp b/src/util/createresource.cpp
index c8fa74e..c4c16f3 100644
--- a/src/util/createresource.cpp
+++ b/src/util/createresource.cpp
@@ -32,7 +32,8 @@ using namespace Akonadi;
using namespace PimCommon;
-CreateResource::CreateResource()
+CreateResource::CreateResource(QObject *parent)
+ : QObject(parent)
{
}
diff --git a/src/util/createresource.h b/src/util/createresource.h
index fcf0a01..8063b5b 100644
--- a/src/util/createresource.h
+++ b/src/util/createresource.h
@@ -29,7 +29,7 @@ class PIMCOMMON_EXPORT CreateResource : public QObject
{
Q_OBJECT
public:
- explicit CreateResource();
+ explicit CreateResource(QObject *parent = Q_NULLPTR);
~CreateResource();
QString createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree = false);