summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-07-18 09:49:25 +0300
committerMarc Mutz <marc.mutz@kdab.com>2016-07-19 08:26:18 +0000
commitc0b6fbcadbefcc8a91e5db7fd98662dddcd7a0f8 (patch)
treec8b8f0fc1270cf0382e2aa26cb3677ba6d764234
parent72ba369a115d97f707cbe6131d8daa751dc5b355 (diff)
downloadqtxmlpatterns-c0b6fbcadbefcc8a91e5db7fd98662dddcd7a0f8.tar.gz
QXmlQuery: fix smart pointer type
m_resourceLoader is a QExplicitlySharedPointer<DeviceResourceLoader>, and ResourceDelegator inherits DeviceResourceLoader, but the newly-allocated object was constructed into a QExplicitlySharedPointer<ResourceLoader>. Benign, but wrong. Found while trying to compile the module without QT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST. Change-Id: I6f0e7bd50488ae6db6ab6c7022503332cd8523f1 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
-rw-r--r--src/xmlpatterns/api/qxmlquery_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/api/qxmlquery_p.h b/src/xmlpatterns/api/qxmlquery_p.h
index 4f97af3..bacf2d0 100644
--- a/src/xmlpatterns/api/qxmlquery_p.h
+++ b/src/xmlpatterns/api/qxmlquery_p.h
@@ -98,7 +98,7 @@ public:
{
const QPatternist::AccelTreeResourceLoader::Ptr nev(new QPatternist::AccelTreeResourceLoader(namePool.d,
m_networkAccessDelegator));
- m_resourceLoader = QPatternist::ResourceLoader::Ptr(new QPatternist::ResourceDelegator(m_resourceLoader->deviceURIs(),
+ m_resourceLoader = QPatternist::DeviceResourceLoader::Ptr(new QPatternist::ResourceDelegator(m_resourceLoader->deviceURIs(),
m_resourceLoader,
nev));
}