aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Martins <[email protected]>2015-11-07 13:13:23 +0000
committerSergio Martins <[email protected]>2015-11-07 13:13:23 +0000
commitbe149924a344c8ee94eda19c51ae196e1169bd30 (patch)
tree9c29bcdb00bfc48d9cdaecdb8397ece1220ffd22
parent9fea8fbeaaab6371d5885c23ab07fb616c82ce6c (diff)
Add Q_DISABLE_COPY to classes with dtor but no copy-ctor
-rw-r--r--src/private/externalpartstorage_p.h2
-rw-r--r--src/server/cachecleaner.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/private/externalpartstorage_p.h b/src/private/externalpartstorage_p.h
index f44a0dc..6c292bf 100644
--- a/src/private/externalpartstorage_p.h
+++ b/src/private/externalpartstorage_p.h
@@ -40,6 +40,8 @@ public:
bool commit();
bool rollback();
+private:
+ Q_DISABLE_COPY(ExternalPartStorageTransaction)
};
/**
diff --git a/src/server/cachecleaner.h b/src/server/cachecleaner.h
index 612eb64..fc33b83 100644
--- a/src/server/cachecleaner.h
+++ b/src/server/cachecleaner.h
@@ -49,6 +49,7 @@ public:
void uninhibit();
private:
+ Q_DISABLE_COPY(CacheCleanerInhibitor)
static QMutex sLock;
static int sInhibitCount;
bool mInhibited;