summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Martins <[email protected]>2015-11-07 13:37:45 +0000
committerSergio Martins <[email protected]>2015-11-07 13:42:05 +0000
commit58f738933a009f49f6e8675b273b028de72d6f88 (patch)
treed6ed4452488c9505a6b4c793134a4c1e91862be8
parent2537e4e0ce7815891b1465e2653e8df3fc58ba5e (diff)
Add Q_DISABLE_COPY to classes with dtor but no copy-ctor
-rw-r--r--akonadi-notes/src/noteutils.h1
-rw-r--r--akonadi/src/core/attributefactory.h1
-rw-r--r--akonadi/src/xml/xmldocument.h1
-rw-r--r--kioslave/src/mbox/urlinfo.h5
4 files changed, 7 insertions, 1 deletions
diff --git a/akonadi-notes/src/noteutils.h b/akonadi-notes/src/noteutils.h
index bd92f73..acb1504 100644
--- a/akonadi-notes/src/noteutils.h
+++ b/akonadi-notes/src/noteutils.h
@@ -261,6 +261,7 @@ public:
private:
//@cond PRIVATE
+ Q_DISABLE_COPY(NoteMessageWrapper)
class NoteMessageWrapperPrivate;
NoteMessageWrapperPrivate *const d_ptr;
Q_DECLARE_PRIVATE(NoteMessageWrapper)
diff --git a/akonadi/src/core/attributefactory.h b/akonadi/src/core/attributefactory.h
index 13c754c..0eea4dd 100644
--- a/akonadi/src/core/attributefactory.h
+++ b/akonadi/src/core/attributefactory.h
@@ -76,6 +76,7 @@ protected:
AttributeFactory();
private:
+ Q_DISABLE_COPY(AttributeFactory)
static AttributeFactory *self();
void registerAttribute(Attribute *attribute);
diff --git a/akonadi/src/xml/xmldocument.h b/akonadi/src/xml/xmldocument.h
index 4e229c8..d36b2ca 100644
--- a/akonadi/src/xml/xmldocument.h
+++ b/akonadi/src/xml/xmldocument.h
@@ -124,6 +124,7 @@ public:
Item::List items(const Collection &collection, bool includePayload = true) const;
private:
+ Q_DISABLE_COPY(XmlDocument)
XmlDocumentPrivate *const d;
};
diff --git a/kioslave/src/mbox/urlinfo.h b/kioslave/src/mbox/urlinfo.h
index 3b19dc3..78787b0 100644
--- a/kioslave/src/mbox/urlinfo.h
+++ b/kioslave/src/mbox/urlinfo.h
@@ -18,8 +18,10 @@
*/
#ifndef URLINFO_H
#define URLINFO_H
-class QUrl;
+#include <qglobal.h>
+
+class QUrl;
class QString;
class UrlInfo
@@ -82,6 +84,7 @@ private:
bool isMessage(const QUrl &url);
private:
+ Q_DISABLE_COPY(UrlInfo)
UrlType m_type;
QString *m_filename;
QString *m_id;