diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-06-25 19:01:24 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-02 11:48:20 (GMT) |
commit | 6f673e2cf55755a97aeb8971994ab9fc62fb794e (patch) | |
tree | f075a45e9fd6a18cfde96fd28069b719be743532 /tests/auto/qsharedpointer/externaltests.h | |
parent | fb51a10ee0451274a430227566ae26efb2ac4474 (diff) | |
download | Qt-6f673e2cf55755a97aeb8971994ab9fc62fb794e.zip Qt-6f673e2cf55755a97aeb8971994ab9fc62fb794e.tar.gz Qt-6f673e2cf55755a97aeb8971994ab9fc62fb794e.tar.bz2 |
Experimental: allow QSharedPointer to be used with forward declarations that are declared in this file.
The one-definition rule allows the forward declaration appearing below to
apply to code that was earlier. Therefore, if the compiler finds out
how to delete the object, we can allow a QSharedPointer of a forward-
declared-type.
This means the actual problem is just a warning with g++. To catch the
error, we need a separate .cpp file and I'd rather run this as an
external test.
Diffstat (limited to 'tests/auto/qsharedpointer/externaltests.h')
-rw-r--r-- | tests/auto/qsharedpointer/externaltests.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qsharedpointer/externaltests.h b/tests/auto/qsharedpointer/externaltests.h index 24a3236..ecc107e 100644 --- a/tests/auto/qsharedpointer/externaltests.h +++ b/tests/auto/qsharedpointer/externaltests.h @@ -45,6 +45,7 @@ #include <QList> #include <QByteArray> +#include <QStringList> QT_BEGIN_NAMESPACE namespace QTest { @@ -102,6 +103,9 @@ namespace QTest { ApplicationType applicationType() const; void setApplicationType(ApplicationType type); + QStringList extraProgramSources() const; + void setExtraProgramSources(const QStringList &list); + QByteArray programHeader() const; void setProgramHeader(const QByteArray &header); |