summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorHarald Fernengel <harald@trolltech.com>2009-08-19 11:33:32 (GMT)
committerHarald Fernengel <harald@trolltech.com>2009-08-19 11:39:49 (GMT)
commitf8710c79adc55708a6484a0dcd3ce3d0ddd57284 (patch)
tree87637384a629ed7d03936ffc64993668fa5003a8 /src/corelib/global
parent82b3f349d6cfe7cb54ee00701ac105c7c8e6d2ec (diff)
downloadQt-f8710c79adc55708a6484a0dcd3ce3d0ddd57284.zip
Qt-f8710c79adc55708a6484a0dcd3ce3d0ddd57284.tar.gz
Qt-f8710c79adc55708a6484a0dcd3ce3d0ddd57284.tar.bz2
Cosmetic fix: Unify the Q_DISABLE_COPY macro
Q_DISABLE_COPY must make the copy constructor and assignment operator private in all cases, otherwise the compiler will create implicit versions when exception support is on.
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qglobal.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index f38d7cc..6722418 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -2337,16 +2337,9 @@ Q_CORE_EXPORT QString qtTrId(const char *id, int n = -1);
classes contains a private copy constructor and assignment
operator to disable copying (the compiler gives an error message).
*/
-
-#if !defined(Q_NO_DECLARED_NOT_DEFINED) || !defined(QT_MAKEDLL)
-# define Q_DISABLE_COPY(Class) \
- Class(const Class &); \
- Class &operator=(const Class &);
-#else
-# define Q_DISABLE_COPY(Class) \
- Class(const Class &); \
- Class &operator=(const Class &);
-#endif
+#define Q_DISABLE_COPY(Class) \
+ Class(const Class &); \
+ Class &operator=(const Class &);
class QByteArray;
Q_CORE_EXPORT QByteArray qgetenv(const char *varName);