summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsharedpointer
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-08-21 13:24:17 (GMT)
committerhjk <qtc-committer@nokia.com>2009-08-21 16:01:15 (GMT)
commit2590135cd8542aa780141b67ab8fa4227ee4fde0 (patch)
tree52d38fb17d41b2a7bf5363f20637cef69cb0cae7 /tests/auto/qsharedpointer
parentd0a1f4de851eb89665b0a3909adcfe150118bc77 (diff)
downloadQt-2590135cd8542aa780141b67ab8fa4227ee4fde0.zip
Qt-2590135cd8542aa780141b67ab8fa4227ee4fde0.tar.gz
Qt-2590135cd8542aa780141b67ab8fa4227ee4fde0.tar.bz2
make moc, qregion and qsharedpointer autotest compile with namespaces
Diffstat (limited to 'tests/auto/qsharedpointer')
-rw-r--r--tests/auto/qsharedpointer/tst_qsharedpointer.cpp2
-rw-r--r--tests/auto/qsharedpointer/wrapper.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
index 50818fe..93f5b6e 100644
--- a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
+++ b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
@@ -51,9 +51,11 @@
#include <stdlib.h>
#include <time.h>
+QT_BEGIN_NAMESPACE
namespace QtSharedPointer {
Q_CORE_EXPORT void internalSafetyCheckCleanCheck();
}
+QT_END_NAMESPACE
#ifdef Q_OS_SYMBIAN
#define SRCDIR "."
diff --git a/tests/auto/qsharedpointer/wrapper.h b/tests/auto/qsharedpointer/wrapper.h
index c006686..4445860 100644
--- a/tests/auto/qsharedpointer/wrapper.h
+++ b/tests/auto/qsharedpointer/wrapper.h
@@ -41,7 +41,10 @@
#ifndef WRAPPER_H
#define WRAPPER_H
+QT_BEGIN_NAMESPACE
template <class T> class QSharedPointer;
+QT_END_NAMESPACE
+
class Wrapper
{
public: