summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternssdk/TestSuiteHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/xmlpatternssdk/TestSuiteHandler.cpp')
-rw-r--r--tests/auto/xmlpatternssdk/TestSuiteHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/xmlpatternssdk/TestSuiteHandler.cpp b/tests/auto/xmlpatternssdk/TestSuiteHandler.cpp
index 3f92297..e7423d1 100644
--- a/tests/auto/xmlpatternssdk/TestSuiteHandler.cpp
+++ b/tests/auto/xmlpatternssdk/TestSuiteHandler.cpp
@@ -52,7 +52,7 @@
using namespace QPatternistSDK;
-QNetworkAccessManager s_networkManager;
+Q_GLOBAL_STATIC(QNetworkAccessManager, networkAccessManager)
TestSuiteHandler::TestSuiteHandler(const QUrl &catalogFile,
const bool useEList) : m_ts(0)
@@ -275,7 +275,7 @@ bool TestSuiteHandler::endElement(const QString &namespaceURI,
}
else if(localName == QLatin1String("sources"))
{
- const QPatternist::NetworkAccessDelegator::Ptr networkDelegator(new QPatternist::NetworkAccessDelegator(&s_networkManager, &s_networkManager));
+ const QPatternist::NetworkAccessDelegator::Ptr networkDelegator(new QPatternist::NetworkAccessDelegator(networkAccessManager(), networkAccessManager()));
m_resourceLoader = QPatternist::ResourceLoader::Ptr(new QPatternist::AccelTreeResourceLoader(Global::namePool(),
networkDelegator));