summaryrefslogtreecommitdiff
path: root/src/libs/utils/guard.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@theqtcompany.com>2016-10-20 16:22:46 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2016-10-21 09:48:40 +0000
commit344f255fa9e0defd1613a2692075f2423b560aad (patch)
tree4d4e2dc0f1fb5de14639d7f8ba7ece78110827b6 /src/libs/utils/guard.h
parentd3a743d77e1fbfa228f20f073636176b04123d69 (diff)
downloadqt-creator-344f255fa9e0defd1613a2692075f2423b560aad.tar.gz
Reuse the Guard class
Change-Id: Ia742ab92fd7947f4d156d03e112ee32363312996 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/libs/utils/guard.h')
-rw-r--r--src/libs/utils/guard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/utils/guard.h b/src/libs/utils/guard.h
index 41bfd82288..063825650d 100644
--- a/src/libs/utils/guard.h
+++ b/src/libs/utils/guard.h
@@ -26,11 +26,13 @@
#pragma once
#include "utils_global.h"
+#include <QtGlobal>
namespace Utils {
class QTCREATOR_UTILS_EXPORT Guard
{
+ Q_DISABLE_COPY(Guard)
public:
Guard();
~Guard();
@@ -42,6 +44,7 @@ private:
class QTCREATOR_UTILS_EXPORT GuardLocker
{
+ Q_DISABLE_COPY(GuardLocker)
public:
GuardLocker(Guard &guard);
~GuardLocker();