diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-08 15:57:41 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-08 15:57:41 (GMT) |
commit | 2bfb839c3ff90b52e52ef032e513b70789139d5c (patch) | |
tree | 5133feb559ff9293293554ff6cf77ef73f849f30 /src/corelib/kernel/qobject.cpp | |
parent | d3dbb40fa67cf566288dce71834213dbe8e119e9 (diff) | |
download | Qt-2bfb839c3ff90b52e52ef032e513b70789139d5c.zip Qt-2bfb839c3ff90b52e52ef032e513b70789139d5c.tar.gz Qt-2bfb839c3ff90b52e52ef032e513b70789139d5c.tar.bz2 |
Disable some code in normal build.
Q_AUTOTEST_EXPORT is always defined.
(it is defined empty if not internal build)
Reviewed-by: Brad
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
-rw-r--r-- | src/corelib/kernel/qobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index a922022..7669ee1 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -882,7 +882,7 @@ QObject::~QObject() // all the signal/slots connections are still in place - if we don't // quit now, we will crash pretty soon. qWarning("Detected an unexpected exception in ~QObject while emitting destroyed()."); -#if defined(Q_AUTOTEST_EXPORT) && !defined(QT_NO_EXCEPTIONS) +#if defined(Q_BUILD_INTERNAL) && !defined(QT_NO_EXCEPTIONS) struct AutotestException : public std::exception { const char *what() const throw() { return "autotest swallow"; } |