diff options
author | Jarek Kobus <[email protected]> | 2016-10-20 16:22:46 +0200 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2016-10-21 09:48:40 +0000 |
commit | 344f255fa9e0defd1613a2692075f2423b560aad (patch) | |
tree | 4d4e2dc0f1fb5de14639d7f8ba7ece78110827b6 /src/libs/utils/guard.h | |
parent | d3a743d77e1fbfa228f20f073636176b04123d69 (diff) |
Reuse the Guard class
Change-Id: Ia742ab92fd7947f4d156d03e112ee32363312996
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/libs/utils/guard.h')
-rw-r--r-- | src/libs/utils/guard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/utils/guard.h b/src/libs/utils/guard.h index 41bfd822887..063825650dc 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(); |